Merge pull request #33676 from obsidiansystems/less-arm-hack

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

authored by John Ericson and committed by GitHub 98b3db2e 01705125

+8 -8
+1 -1
pkgs/development/compilers/gcc/4.5/default.nix
··· 258 # TODO(@Ericson2314): Always pass "--target" and always prefix. 259 configurePlatforms = 260 # TODO(@Ericson2314): Figure out what's going wrong with Arm 261 - if hostPlatform == targetPlatform && targetPlatform.isArm 262 then [] 263 else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target"; 264
··· 258 # TODO(@Ericson2314): Always pass "--target" and always prefix. 259 configurePlatforms = 260 # TODO(@Ericson2314): Figure out what's going wrong with Arm 261 + if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isArm 262 then [] 263 else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target"; 264
+1 -1
pkgs/development/compilers/gcc/4.8/default.nix
··· 300 # TODO(@Ericson2314): Always pass "--target" and always prefix. 301 configurePlatforms = 302 # TODO(@Ericson2314): Figure out what's going wrong with Arm 303 - if hostPlatform == targetPlatform && targetPlatform.isArm 304 then [] 305 else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target"; 306
··· 300 # TODO(@Ericson2314): Always pass "--target" and always prefix. 301 configurePlatforms = 302 # TODO(@Ericson2314): Figure out what's going wrong with Arm 303 + if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isArm 304 then [] 305 else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target"; 306
+1 -1
pkgs/development/compilers/gcc/4.9/default.nix
··· 309 # TODO(@Ericson2314): Always pass "--target" and always prefix. 310 configurePlatforms = 311 # TODO(@Ericson2314): Figure out what's going wrong with Arm 312 - if hostPlatform == targetPlatform && targetPlatform.isArm 313 then [] 314 else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target"; 315
··· 309 # TODO(@Ericson2314): Always pass "--target" and always prefix. 310 configurePlatforms = 311 # TODO(@Ericson2314): Figure out what's going wrong with Arm 312 + if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isArm 313 then [] 314 else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target"; 315
+1 -1
pkgs/development/compilers/gcc/5/default.nix
··· 318 # TODO(@Ericson2314): Always pass "--target" and always prefix. 319 configurePlatforms = 320 # TODO(@Ericson2314): Figure out what's going wrong with Arm 321 - if hostPlatform == targetPlatform && targetPlatform.isArm 322 then [] 323 else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target"; 324
··· 318 # TODO(@Ericson2314): Always pass "--target" and always prefix. 319 configurePlatforms = 320 # TODO(@Ericson2314): Figure out what's going wrong with Arm 321 + if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isArm 322 then [] 323 else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target"; 324
+1 -1
pkgs/development/compilers/gcc/6/default.nix
··· 321 # TODO(@Ericson2314): Always pass "--target" and always prefix. 322 configurePlatforms = 323 # TODO(@Ericson2314): Figure out what's going wrong with Arm 324 - if hostPlatform == targetPlatform && targetPlatform.isArm 325 then [] 326 else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target"; 327
··· 321 # TODO(@Ericson2314): Always pass "--target" and always prefix. 322 configurePlatforms = 323 # TODO(@Ericson2314): Figure out what's going wrong with Arm 324 + if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isArm 325 then [] 326 else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target"; 327
+1 -1
pkgs/development/compilers/gcc/7/default.nix
··· 314 # TODO(@Ericson2314): Always pass "--target" and always prefix. 315 configurePlatforms = 316 # TODO(@Ericson2314): Figure out what's going wrong with Arm 317 - if hostPlatform == targetPlatform && targetPlatform.isArm 318 then [] 319 else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target"; 320
··· 314 # TODO(@Ericson2314): Always pass "--target" and always prefix. 315 configurePlatforms = 316 # TODO(@Ericson2314): Figure out what's going wrong with Arm 317 + if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isArm 318 then [] 319 else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target"; 320
+1 -1
pkgs/development/compilers/gcc/snapshot/default.nix
··· 301 # TODO(@Ericson2314): Always pass "--target" and always prefix. 302 configurePlatforms = 303 # TODO(@Ericson2314): Figure out what's going wrong with Arm 304 - if hostPlatform == targetPlatform && targetPlatform.isArm 305 then [] 306 else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target"; 307
··· 301 # TODO(@Ericson2314): Always pass "--target" and always prefix. 302 configurePlatforms = 303 # TODO(@Ericson2314): Figure out what's going wrong with Arm 304 + if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isArm 305 then [] 306 else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target"; 307
+1 -1
pkgs/development/tools/misc/binutils/default.nix
··· 93 # TODO(@Ericson2314): Always pass "--target" and always targetPrefix. 94 configurePlatforms = 95 # TODO(@Ericson2314): Figure out what's going wrong with Arm 96 - if hostPlatform == targetPlatform && targetPlatform.isArm 97 then [] 98 else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target"; 99
··· 93 # TODO(@Ericson2314): Always pass "--target" and always targetPrefix. 94 configurePlatforms = 95 # TODO(@Ericson2314): Figure out what's going wrong with Arm 96 + if buildPlatform == hostPlatform && hostPlatform == targetPlatform && targetPlatform.isArm 97 then [] 98 else [ "build" "host" ] ++ stdenv.lib.optional (targetPlatform != hostPlatform) "target"; 99