···43 # The wrapper scripts use 'cat' and 'grep', so we may need coreutils.
44 coreutils_bin = if nativeTools then "" else getBin coreutils;
4546- dashlessTarget = stdenv.lib.replaceStrings ["-"] ["_"] targetPlatform.config;
47-48 # See description in cc-wrapper.
49- infixSalt = dashlessTarget;
5051 # The dynamic linker has different names on different platforms. This is a
52 # shell glob that ought to match it.
···43 # The wrapper scripts use 'cat' and 'grep', so we may need coreutils.
44 coreutils_bin = if nativeTools then "" else getBin coreutils;
450046 # See description in cc-wrapper.
47+ infixSalt = replaceStrings ["-" "."] ["_" "_"] targetPlatform.config;
4849 # The dynamic linker has different names on different platforms. This is a
50 # shell glob that ought to match it.
+1-3
pkgs/build-support/cc-wrapper/default.nix
···45 default_cxx_stdlib_compile = optionalString (targetPlatform.isLinux && !(cc.isGNU or false) && !nativeTools && cc ? gcc)
46 "-isystem $(echo -n ${cc.gcc}/include/c++/*) -isystem $(echo -n ${cc.gcc}/include/c++/*)/$(${cc.gcc}/bin/gcc -dumpmachine)";
4748- dashlessTarget = stdenv.lib.replaceStrings ["-"] ["_"] targetPlatform.config;
49-50 # The "infix salt" is a arbitrary string added in the middle of env vars
51 # defined by cc-wrapper's hooks so that multiple cc-wrappers can be used
52 # without interfering. For the moment, it is defined as the target triple,
53 # adjusted to be a valid bash identifier. This should be considered an
54 # unstable implementation detail, however.
55- infixSalt = dashlessTarget;
5657 expand-response-params =
58 if buildPackages.stdenv.cc or null != null && buildPackages.stdenv.cc != "/dev/null"
···45 default_cxx_stdlib_compile = optionalString (targetPlatform.isLinux && !(cc.isGNU or false) && !nativeTools && cc ? gcc)
46 "-isystem $(echo -n ${cc.gcc}/include/c++/*) -isystem $(echo -n ${cc.gcc}/include/c++/*)/$(${cc.gcc}/bin/gcc -dumpmachine)";
470048 # The "infix salt" is a arbitrary string added in the middle of env vars
49 # defined by cc-wrapper's hooks so that multiple cc-wrappers can be used
50 # without interfering. For the moment, it is defined as the target triple,
51 # adjusted to be a valid bash identifier. This should be considered an
52 # unstable implementation detail, however.
53+ infixSalt = replaceStrings ["-" "."] ["_" "_"] targetPlatform.config;
5455 expand-response-params =
56 if buildPackages.stdenv.cc or null != null && buildPackages.stdenv.cc != "/dev/null"