gcc, binutils: Narrow down ARM hack so only native builds are affected

This commit is contained in:
John Ericson
2018-01-09 17:25:49 -05:00
parent c3052295fa
commit c98e6b6771
8 changed files with 8 additions and 8 deletions

View File

@@ -93,7 +93,7 @@ stdenv.mkDerivation rec {
# TODO(@Ericson2314): Always pass "--target" and always targetPrefix.
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";