go_1_15: go: only set CC when cross-compiling

81a8b76b3a
wip/yesman
zowoq 4 years ago
parent 752ea30951
commit 3bfa73bbe8
  1. 3
      pkgs/development/compilers/go/1.15.nix

@ -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
'';

Loading…
Cancel
Save