{cc,bintools}-wrapper: also replace . in config

Some configs will have dots for version numbers. To normalize we can
just use _ again.
This commit is contained in:
Matthew Bauer
2018-07-28 19:54:09 -04:00
committed by Matthew Bauer
parent 82f3cd631c
commit 96ce1e03a4
2 changed files with 2 additions and 6 deletions
@@ -43,10 +43,8 @@ let
# The wrapper scripts use 'cat' and 'grep', so we may need coreutils.
coreutils_bin = if nativeTools then "" else getBin coreutils;
dashlessTarget = stdenv.lib.replaceStrings ["-"] ["_"] targetPlatform.config;
# See description in cc-wrapper.
infixSalt = dashlessTarget;
infixSalt = replaceStrings ["-" "."] ["_" "_"] targetPlatform.config;
# The dynamic linker has different names on different platforms. This is a
# shell glob that ought to match it.