File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -1003,7 +1003,7 @@ function generate_compiler_wrappers!(platform::AbstractPlatform; bin_path::Abstr
1003
1003
write (xcrun_path, """
1004
1004
#!/bin/sh
1005
1005
1006
- sdk_path=/opt/ \$ target/ \$ target/sys-root
1006
+ sdk_path=\$ SDKROOT
1007
1007
1008
1008
show_sdk_path() {
1009
1009
echo "\$ 1"
@@ -1017,6 +1017,10 @@ function generate_compiler_wrappers!(platform::AbstractPlatform; bin_path::Abstr
1017
1017
1018
1018
while [ \$ # -gt 0 ]; do
1019
1019
case "\$ 1" in
1020
+ --sdk)
1021
+ sdk_path=\$ 2
1022
+ shift 2
1023
+ ;;
1020
1024
--show-sdk-path)
1021
1025
show_sdk_path \$ sdk_path
1022
1026
shift
@@ -1286,6 +1290,7 @@ function platform_envs(platform::AbstractPlatform, src_name::AbstractString;
1286
1290
if Sys. isapple (platform)
1287
1291
mapping[" LD" ] = " /opt/bin/$(triplet (platform)) /ld"
1288
1292
mapping[" MACOSX_DEPLOYMENT_TARGET" ] = macos_version (platform)
1293
+ mapping[" SDKROOT" ] = " /opt/$(triplet (platform)) /$(triplet (platform)) /sys-root"
1289
1294
end
1290
1295
1291
1296
# There is no broad agreement on what host compilers should be called,
You can’t perform that action at this time.
0 commit comments