Allow CC to be overriden in Makefile

To support changing compilers which is particularly useful for cross
compilation, use the defined CC if it exists.

Signed-off-by: Charlie Jenkins <charlie@rivosinc.com>
This commit is contained in:
Charlie Jenkins 2025-01-17 16:35:53 -08:00
parent 2c29fe37ef
commit 7d3c7595d2

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".