summary refs log tree commit diff
path: root/pkgs/development/compilers/gcc/4.8
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/4.8
parentc3052295fa1285a3192c549961eba467baee15eb (diff)
downloadnixlib-c98e6b67710c7c04ddab56cb09a14540e6668dbc.tar
nixlib-c98e6b67710c7c04ddab56cb09a14540e6668dbc.tar.gz
nixlib-c98e6b67710c7c04ddab56cb09a14540e6668dbc.tar.bz2
nixlib-c98e6b67710c7c04ddab56cb09a14540e6668dbc.tar.lz
nixlib-c98e6b67710c7c04ddab56cb09a14540e6668dbc.tar.xz
nixlib-c98e6b67710c7c04ddab56cb09a14540e6668dbc.tar.zst
nixlib-c98e6b67710c7c04ddab56cb09a14540e6668dbc.zip
gcc, binutils: Narrow down ARM hack so only native builds are affected
Diffstat (limited to 'pkgs/development/compilers/gcc/4.8')
-rw-r--r--pkgs/development/compilers/gcc/4.8/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkgs/development/compilers/gcc/4.8/default.nix b/pkgs/development/compilers/gcc/4.8/default.nix
index e2e01895c26a..0105a159877a 100644
--- a/pkgs/development/compilers/gcc/4.8/default.nix
+++ b/pkgs/development/compilers/gcc/4.8/default.nix
@@ -300,7 +300,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";