go_1_15: go: only set CC when cross-compiling

81a8b76b3a
This commit is contained in:
zowoq 2020-07-16 12:48:13 +10:00
parent 752ea30951
commit 3bfa73bbe8

View File

@ -196,8 +196,11 @@ stdenv.mkDerivation rec {
export PATH=$(pwd)/bin:$PATH
${optionalString (stdenv.buildPlatform != stdenv.targetPlatform) ''
# Independent from host/target, CC should produce code for the building system.
# We only set it when cross-compiling.
export CC=${buildPackages.stdenv.cc}/bin/cc
''}
ulimit -a
'';