Skip to content

Commit 57b1464

Browse files
committed
Allow ARCH to be overriden in Makefile
To support changing compilers which is particularly useful for cross compilation, use the defined ARCH if it exists. Signed-off-by: Charlie Jenkins <[email protected]>
1 parent 7d3c759 commit 57b1464

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

UnixBench/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ else
8989

9090
## OS detection. Comment out if gmake syntax not supported by other 'make'.
9191
OSNAME:=$(shell uname -s)
92-
ARCH := $(shell uname -m)
92+
ARCH ?= $(shell uname -m)
9393
ifeq ($(OSNAME),Linux)
9494
# Not all CPU architectures support "-march" or "-march=native".
9595
# - Supported : x86, x86_64, ARM, AARCH64, riscv64, etc..

0 commit comments

Comments
 (0)