Unset CC before building to prevent env pollution

This commit is contained in:
Long Nguyen authored and Martin Storsjö committed 2021-02-10 14:42:34 +02:00
1 parent cc0055bc96
commit c0596d3170
2 files changed
+3

No files matched your search

+1
View File
@@ -24,6 +24,7 @@ PREFIX="$1"
mkdir -p "$PREFIX"
PREFIX="$(cd "$PREFIX" && pwd)"
export PATH="$PREFIX/bin:$PATH"
unset CC
: ${CORES:=$(nproc 2>/dev/null)}
: ${CORES:=$(sysctl -n hw.ncpu 2>/dev/null)}