0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

swift: source darwin-sdk-setup.bash

Fixes builds using xcbuild that redefine SDKROOT in the xcbuild wrapper.
SDKROOT will be set using the same logic that other wrappers use.
This commit is contained in:
Randy Eckenrode 2024-11-29 14:41:40 -05:00
parent 2d9cb77fbc
commit c578c48b7f
No known key found for this signature in database
GPG key ID: 64C1CD4EC2A600D9

View file

@ -12,6 +12,8 @@ cc_wrapper="${NIX_CC:-@default_cc_wrapper@}"
source $cc_wrapper/nix-support/utils.bash
source $cc_wrapper/nix-support/darwin-sdk-setup.bash
expandResponseParams "$@"
# Check if we should wrap this Swift invocation at all, and how. Specifically,