mirror of
https://github.com/kdlucas/byte-unixbench.git
synced 2025-02-09 23:50:27 +08:00
Merge pull request #108 from charlie-rivos/dev/charlie/support_cross_compilation
Allow CC to be overriden in Makefile
This commit is contained in:
commit
f62b292e4c
@ -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..
|
||||
|
Loading…
Reference in New Issue
Block a user