Allow custom compiler via environment variable for src/cc

The build system supports using CC to control the C compiler
and CXX to control the c++ compiler used but src/cc was hardcoded
to use the binary "gcc". Now it respects the custom value of
$CC environment variable if it exists.
This commit is contained in:
Duke
2025-12-29 19:18:57 -05:00
parent edd856a51a
commit e9b185f702
2 changed files with 1 additions and 2 deletions

View File

@@ -1,5 +1,4 @@
SHELL = /bin/sh
CC = gcc
CC_DARWIN = g++-8
CC_WIN = x86_64-w64-mingw32-gcc-posix
CC_AARCH64 = aarch64-linux-gnu-g++

View File

@@ -137,7 +137,7 @@ CONFIG_SITE="$PWD/depends/$HOST/share/config.site" ./configure "$HARDENING_ARG"
WD=$PWD
cd src/cc
echo $PWD
./makecustom
CC=${CC:-gcc} ./makecustom
cd $WD
# Build RandomX