We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
--show-sdk-path
--show-sdk-version
1 parent 36a94b7 commit ea089e3Copy full SHA for ea089e3
src/Runner.jl
@@ -1001,8 +1001,16 @@ function generate_compiler_wrappers!(platform::AbstractPlatform; bin_path::Abstr
1001
# <https://github.com/JuliaPackaging/Yggdrasil/pull/2962>.
1002
xcrun_path = joinpath(bin_path, triplet(platform), "xcrun")
1003
write(xcrun_path, """
1004
- #!/bin/sh
1005
- exec "\${@}"
+ #!/bin/bash
+ 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
1014
""")
1015
chmod(xcrun_path, 0o775)
1016
end
0 commit comments