From: Dan Fuhry Date: Tue, 16 Apr 2024 12:39:08 +0000 (-0400) Subject: fix native build detection X-Git-Url: https://go.fuhry.dev/?a=commitdiff_plain;h=df0df4f1e76a7b858fa7d6123cf2fbf30cda377f;p=runtime.git fix native build detection --- diff --git a/.gitignore b/.gitignore index d81dcea..910f62b 100644 --- a/.gitignore +++ b/.gitignore @@ -26,6 +26,7 @@ attestation/client/client machines/event_monitor/event_monitor +machines/machines_agent/machines_agent sase/ws_proxy_client/ws_proxy_client sase/ws_tcp_proxy/ws_tcp_proxy sd/health_exporter/health_exporter diff --git a/Makefile b/Makefile index a1b3223..9078fb1 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ GOMAINDIRS = $(GOMAINSRCS:/main.go=) GOOS ?= $(shell go env GOOS) GOARCH ?= $(shell go env GOARCH) -ifeq ($(GOOS)/$(GOARCH),$(shell go env GOOS)/$(shell go env GOARCH)) +ifeq ($(GOOS)/$(GOARCH),$(shell env - go env GOOS)/$(shell env - go env GOARCH)) NATIVE_BUILD := 1 else NATIVE_BUILD := 0