We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5fdf9ad + 3635fdb commit 300f158Copy full SHA for 300f158
Makefile.system
@@ -9,9 +9,11 @@ ifndef TOPDIR
9
TOPDIR = .
10
endif
11
12
-# If ARCH is not set, we use the host system's architecture.
+# If ARCH is not set, we use the host system's architecture for getarch compile options.
13
ifndef ARCH
14
-ARCH := $(shell uname -m)
+HOSTARCH := $(shell uname -m)
15
+else
16
+HOSTARCH = $(ARCH)
17
18
19
# Catch conflicting usage of ARCH in some BSD environments
@@ -143,7 +145,7 @@ endif
143
145
144
146
147
# On x86_64 build getarch with march=native unless the compiler is PGI. This is required to detect AVX512 support in getarch.
-ifeq ($(ARCH), x86_64)
148
+ifeq ($(HOSTARCH), x86_64)
149
ifeq ($(findstring pgcc,$(HOSTCC)),)
150
GETARCH_FLAGS += -march=native
151
0 commit comments