xcbuild: add SDKROOT by default to the wrappers

This fixes #30269 and lets us do things like `xcrun -find cc`, for
example.
This commit is contained in:
Dan Peebles 2017-10-10 16:41:44 -04:00
parent 0f914d2373
commit f92e097cd4

View file

@ -58,11 +58,14 @@ stdenv.mkDerivation {
wrapProgram $out/bin/xcodebuild \
--add-flags "-xcconfig ${xcconfig}" \
--add-flags "DERIVED_DATA_DIR=." \
--set DEVELOPER_DIR "$out"
--set DEVELOPER_DIR "$out" \
--set SDKROOT ${sdkName}
wrapProgram $out/bin/xcrun \
--set DEVELOPER_DIR "$out"
--set DEVELOPER_DIR "$out" \
--set SDKROOT ${sdkName}
wrapProgram $out/bin/xcode-select \
--set DEVELOPER_DIR "$out"
--set DEVELOPER_DIR "$out" \
--set SDKROOT ${sdkName}
'';
inherit (xcbuild) meta;