darwin: remove -arch from cc/ld wrapper

`-arch` in the cc/ld wrapper causes problems when specifying different
`--target` options, which would succeed except for the conflicting
`-arch` specifier.

Reverts fc0456bed1 and
b26e0bac8d
This commit is contained in:
Reno Dakota
2024-11-20 02:14:51 +00:00
committed by Emily
parent 4e9d1421f3
commit 028069d767
2 changed files with 0 additions and 8 deletions
@@ -343,10 +343,6 @@ stdenvNoCC.mkDerivation {
done
''
+ optionalString targetPlatform.isDarwin ''
echo "-arch ${targetPlatform.darwinArch}" >> $out/nix-support/libc-ldflags
''
##
## GNU specific extra strip flags
##
@@ -696,10 +696,6 @@ stdenvNoCC.mkDerivation {
done
''
+ optionalString targetPlatform.isDarwin ''
echo "-arch ${targetPlatform.darwinArch}" >> $out/nix-support/cc-cflags
''
+ optionalString targetPlatform.isAndroid ''
echo "-D__ANDROID_API__=${targetPlatform.androidSdkVersion}" >> $out/nix-support/cc-cflags
''