From c578c48b7f0bdecaf6c6eb6cef4678f2223b29a9 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Fri, 29 Nov 2024 14:41:40 -0500 Subject: [PATCH] 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. --- pkgs/development/compilers/swift/wrapper/wrapper.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/development/compilers/swift/wrapper/wrapper.sh b/pkgs/development/compilers/swift/wrapper/wrapper.sh index 3079bb182b1a..bb9c07a5b444 100644 --- a/pkgs/development/compilers/swift/wrapper/wrapper.sh +++ b/pkgs/development/compilers/swift/wrapper/wrapper.sh @@ -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,