nixpkgs/pkgs/build-support/cc-wrapper
Andrew Childs 2a9b3b4943 cc-wrapper, bintools-wrapper: support MACOSX_DEPLOYMENT_TARGET with roles
In a typical build environment the toolchain will use the value of the
MACOSX_DEPLOYMENT_TARGET environment variable to determine the version
of macOS to support. When cross compiling there are two distinct
toolchains, but they will look at this single environment variable. To
avoid contamination, we always set the equivalent command line flag
which effectively disables the toolchain's internal handling.

Prior to this change, the MACOSX_DEPLOYMENT_TARGET variable was
ignored, and the toolchains always used the Nix platform
definition (`darwinMinVersion`) unless overridden with command line
arguments.

This change restores support for MACOSX_DEPLOYMENT_TARGET, and adds
nix-specific MACOSX_DEPLOYMENT_TARGET_FOR_BUILD and
MACOSX_DEPLOYMENT_TARGET_FOR_TARGET for cross compilation.
2021-04-11 09:47:10 +09:00
..
add-flags.sh cc-wrapper, bintools-wrapper: support MACOSX_DEPLOYMENT_TARGET with roles 2021-04-11 09:47:10 +09:00
add-hardening.sh *-wrapper; Switch from infixSalt to suffixSalt 2020-05-12 00:44:44 -04:00
cc-wrapper.sh cc-wrapper: -nostdlib does not imply -nostdinc++ 2021-03-20 09:26:04 +01:00
default.nix cc-wrapper, bintools-wrapper: support MACOSX_DEPLOYMENT_TARGET with roles 2021-04-11 09:47:10 +09:00
fortran-hook.sh cc-wrapper: set FC when langFortran is on 2020-07-06 00:22:19 -04:00
gnat-wrapper.sh gnat: fix build 2020-09-19 20:54:27 -07:00
setup-hook.sh *-wrapper; Switch from infixSalt to suffixSalt 2020-05-12 00:44:44 -04:00