summary refs log tree commit diff
path: root/pkgs/development/compilers/gcc/6/default.nix
diff options
context:
space:
mode:
authorJohn Ericson <John.Ericson@Obsidian.Systems>2018-01-09 17:25:49 -0500
committerJohn Ericson <John.Ericson@Obsidian.Systems>2018-01-09 17:25:49 -0500
commitc98e6b67710c7c04ddab56cb09a14540e6668dbc (patch)
treee3769c7a08d90c41612e30d19b58dbddb3ce9bd1 /pkgs/development/compilers/gcc/6/default.nix
parentc3052295fa1285a3192c549961eba467baee15eb (diff)
downloadnixpkgs-c98e6b67710c7c04ddab56cb09a14540e6668dbc.tar
nixpkgs-c98e6b67710c7c04ddab56cb09a14540e6668dbc.tar.gz
nixpkgs-c98e6b67710c7c04ddab56cb09a14540e6668dbc.tar.bz2
nixpkgs-c98e6b67710c7c04ddab56cb09a14540e6668dbc.tar.lz
nixpkgs-c98e6b67710c7c04ddab56cb09a14540e6668dbc.tar.xz
nixpkgs-c98e6b67710c7c04ddab56cb09a14540e6668dbc.tar.zst
nixpkgs-c98e6b67710c7c04ddab56cb09a14540e6668dbc.zip
gcc, binutils: Narrow down ARM hack so only native builds are affected
Diffstat (limited to 'pkgs/development/compilers/gcc/6/default.nix')
-rw-r--r--pkgs/development/compilers/gcc/6/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/compilers/gcc/6/default.nix b/pkgs/development/compilers/gcc/6/default.nix
index 96d88d3085b..2614e96e1b7 100644
--- a/pkgs/development/compilers/gcc/6/default.nix
+++ b/pkgs/development/compilers/gcc/6/default.nix
@@ -321,7 +321,7 @@ stdenv.mkDerivation ({
   # TODO(@Ericson2314): Always pass "--target" and always prefix.
   configurePlatforms =
     # TODO(@Ericson2314): Figure out what's going wrong with Arm
-    if hostPlatform == targetPlatform && targetPlatform.isArm
+    if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isArm
     then []
     else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";