File tree Expand file tree Collapse file tree 1 file changed +13
-13
lines changed
Expand file tree Collapse file tree 1 file changed +13
-13
lines changed Original file line number Diff line number Diff line change @@ -1003,42 +1003,42 @@ function generate_compiler_wrappers!(platform::AbstractPlatform; bin_path::Abstr
10031003 xcrun_path = joinpath (bin_path, triplet (platform), " xcrun" )
10041004 write (xcrun_path, """
10051005 #!/bin/sh
1006-
1007- sdk_path=\$ SDKROOT
1008-
1006+
1007+ sdk_path=" \$ SDKROOT"
1008+
10091009 show_sdk_path() {
10101010 echo "\$ 1"
10111011 }
1012-
1012+
10131013 show_sdk_version() {
1014- plistutil -f xml -i \$ 1/SDKSettings.plist
1015- | grep -A1 '<key>Version</key>' \
1016- | tail -n1 \
1014+ plistutil -f xml -i " \$ 1" /SDKSettings.plist \\
1015+ | grep -A1 '<key>Version</key>' \\
1016+ | tail -n1 \\
10171017 | sed -E -e 's/\\ s*<string>([^<]+)<\\ /string>\\ s*/\\ 1/'
10181018 }
1019-
1019+
10201020 while [ \$ # -gt 0 ]; do
10211021 case "\$ 1" in
10221022 --sdk)
1023- sdk_path=\$ 2
1023+ sdk_path=" \$ 2"
10241024 shift 2
10251025 ;;
10261026 --show-sdk-path)
1027- show_sdk_path \$ sdk_path
1027+ show_sdk_path " \$ sdk_path"
10281028 shift
10291029 ;;
10301030 --show-sdk-version)
1031- show_sdk_version \$ sdk_path
1031+ show_sdk_version " \$ sdk_path"
10321032 shift
10331033 ;;
10341034 *)
10351035 break
10361036 ;;
10371037 esac
10381038 done
1039-
1039+
10401040 if [ \$ # -gt 0 ]; then
1041- "\$ @"
1041+ "\$ @"
10421042 fi
10431043 """ )
10441044 chmod (xcrun_path, 0o775 )
You can’t perform that action at this time.
0 commit comments