mirror of
https://github.com/kdlucas/byte-unixbench.git
synced 2026-08-04 03:03:29 +08:00
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 <charlie@rivosinc.com>
This commit is contained in:
@@ -89,7 +89,7 @@ else
|
||||
|
||||
## OS detection. Comment out if gmake syntax not supported by other 'make'.
|
||||
OSNAME:=$(shell uname -s)
|
||||
ARCH := $(shell uname -m)
|
||||
ARCH ?= $(shell uname -m)
|
||||
ifeq ($(OSNAME),Linux)
|
||||
# Not all CPU architectures support "-march" or "-march=native".
|
||||
# - Supported : x86, x86_64, ARM, AARCH64, riscv64, etc..
|
||||
|
||||
Reference in New Issue
Block a user