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 @@ -997,8 +997,16 @@ function generate_compiler_wrappers!(platform::AbstractPlatform; bin_path::Abstr
997997 # <https://github.com/JuliaPackaging/Yggdrasil/pull/2962>.
998998 xcrun_path = joinpath (bin_path, triplet (platform), " xcrun" )
999999 write (xcrun_path, """
1000- #!/bin/sh
1001- exec "\$ {@}"
1000+ #!/bin/bash
1001+ if [[ "\$ {@}" == *"--show-sdk-path"* ]]; then
1002+ echo /opt/$target /$target /sys-root
1003+ elif [[ "\$ {@}" == *"--show-sdk-version"* ]]; then
1004+ grep -A1 '<key>Version</key>' /opt/$target /$target /sys-root/SDKSettings.plist \
1005+ | tail -n1 \
1006+ | sed -E -e 's/\s *<string>([^<]+)<\/ string>\s */\1 /'
1007+ else
1008+ exec "\$ {@}"
1009+ fi
10021010 """ )
10031011 chmod (xcrun_path, 0o775 )
10041012 end
You can’t perform that action at this time.
0 commit comments