Skip to content

Commit f62b292

Browse files
authored
Merge pull request #108 from charlie-rivos/dev/charlie/support_cross_compilation
Allow CC to be overriden in Makefile
2 parents 641a583 + 57b1464 commit f62b292

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

UnixBench/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ GL_LIBS = -lGL -lXext -lX11
5555
# COMPILER CONFIGURATION: Set "CC" to the name of the compiler to use
5656
# to build the binary benchmarks. You should also set "$cCompiler" in the
5757
# Run script to the name of the compiler you want to test.
58-
CC=gcc
58+
CC?=gcc
5959

6060
# OPTIMISATION SETTINGS:
6161
# Use gcc option if defined UB_GCC_OPTIONS via "Environment variable" or "Command-line arguments".
@@ -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)