cc-wrapper: specify default -mmacos-version-min

This avoids contamination via MACSOX_DEPLOYMENT_TARGET when cross
compiling.
This commit is contained in:
Andrew Childs 2021-02-18 13:37:57 +09:00
parent 2316ada93f
commit 362cb82b75

View File

@ -487,6 +487,7 @@ stdenv.mkDerivation {
+ optionalString stdenv.targetPlatform.isDarwin ''
echo "-arch ${targetPlatform.darwinArch}" >> $out/nix-support/cc-cflags
echo "-m${targetPlatform.darwinPlatform}-version-min=${targetPlatform.darwinMinVersion}" >> $out/nix-support/cc-cflags-before
''
##