cc-wrapper: don't set cxx_stdlib when nativeTools is true

There are no gcc paths on nativeTools, and cc isn't set.
This commit is contained in:
Dylan Simon 2017-12-09 01:01:39 -05:00 committed by Orivej Desh
parent 994a614ca3
commit 0c62b7cd74

View File

@ -46,7 +46,7 @@ let
# The wrapper scripts use 'cat' and 'grep', so we may need coreutils.
coreutils_bin = if nativeTools then "" else getBin coreutils;
default_cxx_stdlib_compile=optionalString (targetPlatform.isLinux && !(cc.isGNU or false))
default_cxx_stdlib_compile = optionalString (targetPlatform.isLinux && !(cc.isGNU or false) && !nativeTools)
"-isystem $(echo -n ${cc.gcc}/include/c++/*) -isystem $(echo -n ${cc.gcc}/include/c++/*)/$(${cc.gcc}/bin/gcc -dumpmachine)";
dashlessTarget = stdenv.lib.replaceStrings ["-"] ["_"] targetPlatform.config;