about summary refs log tree commit diff
path: root/pkgs/build-support/cc-wrapper
diff options
context:
space:
mode:
authorJohn Ericson <git@JohnEricson.me>2020-04-13 19:19:05 -0400
committerJohn Ericson <git@JohnEricson.me>2020-04-13 19:26:19 -0400
commit204d7104053d5d97c0036e20a912814d63f71e6f (patch)
treeb2a7da9556620543dd59dc21af143a25b2deb2c5 /pkgs/build-support/cc-wrapper
parent17f2cf93dc3dfd49c7be85eee960994640b6f957 (diff)
downloadnixlib-204d7104053d5d97c0036e20a912814d63f71e6f.tar
nixlib-204d7104053d5d97c0036e20a912814d63f71e6f.tar.gz
nixlib-204d7104053d5d97c0036e20a912814d63f71e6f.tar.bz2
nixlib-204d7104053d5d97c0036e20a912814d63f71e6f.tar.lz
nixlib-204d7104053d5d97c0036e20a912814d63f71e6f.tar.xz
nixlib-204d7104053d5d97c0036e20a912814d63f71e6f.tar.zst
nixlib-204d7104053d5d97c0036e20a912814d63f71e6f.zip
treewide: Get rid of -dumpmachine in favor of static info
Diffstat (limited to 'pkgs/build-support/cc-wrapper')
-rw-r--r--pkgs/build-support/cc-wrapper/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/build-support/cc-wrapper/default.nix b/pkgs/build-support/cc-wrapper/default.nix
index 96d48ecbc79d..f6248335052c 100644
--- a/pkgs/build-support/cc-wrapper/default.nix
+++ b/pkgs/build-support/cc-wrapper/default.nix
@@ -48,7 +48,7 @@ let
   coreutils_bin = if nativeTools then "" else getBin coreutils;
 
   default_cxx_stdlib_compile = if (targetPlatform.isLinux && !(cc.isGNU or false) && !nativeTools && cc ? gcc) && !(targetPlatform.useLLVM or false) then
-    "-isystem $(echo -n ${cc.gcc}/include/c++/*) -isystem $(echo -n ${cc.gcc}/include/c++/*)/$(${cc.gcc}/bin/gcc -dumpmachine)"
+    "-isystem $(echo -n ${cc.gcc}/include/c++/*) -isystem $(echo -n ${cc.gcc}/include/c++/*)/${targetPlatform.config}"
   else if targetPlatform.isDarwin && (libcxx != null) && (cc.isClang or false) && !(targetPlatform.useLLVM or false) then
     "-isystem ${libcxx}/include/c++/v1"
   else "";