summary refs log tree commit diff
path: root/pkgs/development/compilers/gcc/7
diff options
context:
space:
mode:
authorDrew Hess <src@drewhess.com>2018-01-08 20:03:33 -0800
committerDrew Hess <src@drewhess.com>2018-01-08 20:03:33 -0800
commit3ed545ab31146e607c57649936c75869d6aa9ba2 (patch)
tree9135f36644fe31c30314953449c4cf2143f09c3b /pkgs/development/compilers/gcc/7
parentb195d8ab079ed7afbc583b165255483230008b51 (diff)
downloadnixlib-3ed545ab31146e607c57649936c75869d6aa9ba2.tar
nixlib-3ed545ab31146e607c57649936c75869d6aa9ba2.tar.gz
nixlib-3ed545ab31146e607c57649936c75869d6aa9ba2.tar.bz2
nixlib-3ed545ab31146e607c57649936c75869d6aa9ba2.tar.lz
nixlib-3ed545ab31146e607c57649936c75869d6aa9ba2.tar.xz
nixlib-3ed545ab31146e607c57649936c75869d6aa9ba2.tar.zst
nixlib-3ed545ab31146e607c57649936c75869d6aa9ba2.zip
Revert "gcc, binutils: Get rid of 32-bit ARM configure flag exception"
This commit breaks native armv7l-linux builds. Revert it until it can
be root-caused. This reversion does not affect other platforms or
cross-compiling.

This reverts commit 0f5c80463176f7b146e8ef1943a3bbd61d4cbaf0.
Diffstat (limited to 'pkgs/development/compilers/gcc/7')
-rw-r--r--pkgs/development/compilers/gcc/7/default.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/pkgs/development/compilers/gcc/7/default.nix b/pkgs/development/compilers/gcc/7/default.nix
index c20546b59e8e..74ec6ee26a1e 100644
--- a/pkgs/development/compilers/gcc/7/default.nix
+++ b/pkgs/development/compilers/gcc/7/default.nix
@@ -312,7 +312,11 @@ stdenv.mkDerivation ({
   dontDisableStatic = true;
 
   # TODO(@Ericson2314): Always pass "--target" and always prefix.
-  configurePlatforms = [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
+  configurePlatforms =
+    # TODO(@Ericson2314): Figure out what's going wrong with Arm
+    if hostPlatform == targetPlatform && targetPlatform.isArm
+    then []
+    else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target";
 
   configureFlags =
     # Basic dependencies