Merge pull request #108 from charlie-rivos/dev/charlie/support_cross_compilation

Allow CC to be overriden in Makefile
This commit is contained in:
wangxp006 2025-02-06 10:13:29 +08:00 committed by GitHub
commit f62b292e4c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -55,7 +55,7 @@ GL_LIBS = -lGL -lXext -lX11
# COMPILER CONFIGURATION: Set "CC" to the name of the compiler to use
# to build the binary benchmarks. You should also set "$cCompiler" in the
# Run script to the name of the compiler you want to test.
CC=gcc
CC?=gcc
# OPTIMISATION SETTINGS:
# Use gcc option if defined UB_GCC_OPTIONS via "Environment variable" or "Command-line arguments".
@ -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..