···4343 # The wrapper scripts use 'cat' and 'grep', so we may need coreutils.
4444 coreutils_bin = if nativeTools then "" else getBin coreutils;
45454646- dashlessTarget = stdenv.lib.replaceStrings ["-"] ["_"] targetPlatform.config;
4747-4846 # See description in cc-wrapper.
4949- infixSalt = dashlessTarget;
4747+ infixSalt = replaceStrings ["-" "."] ["_" "_"] targetPlatform.config;
50485149 # The dynamic linker has different names on different platforms. This is a
5250 # shell glob that ought to match it.
+1-3
pkgs/build-support/cc-wrapper/default.nix
···4545 default_cxx_stdlib_compile = optionalString (targetPlatform.isLinux && !(cc.isGNU or false) && !nativeTools && cc ? gcc)
4646 "-isystem $(echo -n ${cc.gcc}/include/c++/*) -isystem $(echo -n ${cc.gcc}/include/c++/*)/$(${cc.gcc}/bin/gcc -dumpmachine)";
47474848- dashlessTarget = stdenv.lib.replaceStrings ["-"] ["_"] targetPlatform.config;
4949-5048 # The "infix salt" is a arbitrary string added in the middle of env vars
5149 # defined by cc-wrapper's hooks so that multiple cc-wrappers can be used
5250 # without interfering. For the moment, it is defined as the target triple,
5351 # adjusted to be a valid bash identifier. This should be considered an
5452 # unstable implementation detail, however.
5555- infixSalt = dashlessTarget;
5353+ infixSalt = replaceStrings ["-" "."] ["_" "_"] targetPlatform.config;
56545755 expand-response-params =
5856 if buildPackages.stdenv.cc or null != null && buildPackages.stdenv.cc != "/dev/null"