File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -1001,8 +1001,16 @@ function generate_compiler_wrappers!(platform::AbstractPlatform; bin_path::Abstr
1001
1001
# <https://github.com/JuliaPackaging/Yggdrasil/pull/2962>.
1002
1002
xcrun_path = joinpath (bin_path, triplet (platform), " xcrun" )
1003
1003
write (xcrun_path, """
1004
- #!/bin/sh
1005
- exec "\$ {@}"
1004
+ #!/bin/bash
1005
+ if [[ "\$ {@}" == *"--show-sdk-path"* ]]; then
1006
+ echo /opt/$target /$target /sys-root
1007
+ elif [[ "\$ {@}" == *"--show-sdk-version"* ]]; then
1008
+ grep -A1 '<key>Version</key>' /opt/$target /$target /sys-root/SDKSettings.plist \
1009
+ | tail -n1 \
1010
+ | sed -E -e 's/\s *<string>([^<]+)<\/ string>\s */\1 /'
1011
+ else
1012
+ exec "\$ {@}"
1013
+ fi
1006
1014
""" )
1007
1015
chmod (xcrun_path, 0o775 )
1008
1016
end
You can’t perform that action at this time.
0 commit comments