@@ -40,10 +40,10 @@ def get_swiftpm_options(args):
40
40
swiftpm_args += [
41
41
# Dispatch headers
42
42
'-Xcxx' , '-I' , '-Xcxx' ,
43
- os .path .join (args .toolchain , 'usr' , ' lib' , 'swift' ),
43
+ os .path .join (args .toolchain , 'lib' , 'swift' ),
44
44
# For <Block.h>
45
45
'-Xcxx' , '-I' , '-Xcxx' ,
46
- os .path .join (args .toolchain , 'usr' , ' lib' , 'swift' , 'Block' ),
46
+ os .path .join (args .toolchain , 'lib' , 'swift' , 'Block' ),
47
47
]
48
48
49
49
if 'ANDROID_DATA' in os .environ :
@@ -62,7 +62,7 @@ def get_swiftpm_options(args):
62
62
return swiftpm_args
63
63
64
64
def install (swiftpm_bin_path , toolchain ):
65
- toolchain_bin = os .path .join (toolchain , 'usr' , ' bin' )
65
+ toolchain_bin = os .path .join (toolchain , 'bin' )
66
66
for exe in ['sourcekit-lsp' ]:
67
67
install_binary (exe , swiftpm_bin_path , toolchain_bin , toolchain )
68
68
@@ -73,7 +73,7 @@ def install_binary(exe, source_dir, install_dir, toolchain):
73
73
74
74
if platform .system () == 'Darwin' :
75
75
result_path = os .path .join (install_dir , exe )
76
- stdlib_rpath = os .path .join (toolchain , 'usr' , ' lib' , 'swift' , 'macosx' )
76
+ stdlib_rpath = os .path .join (toolchain , 'lib' , 'swift' , 'macosx' )
77
77
delete_rpath (stdlib_rpath , result_path )
78
78
79
79
def delete_rpath (rpath , binary ):
@@ -110,7 +110,7 @@ def add_common_args(parser):
110
110
args .toolchain = os .path .abspath (args .toolchain )
111
111
112
112
if args .toolchain :
113
- swift_exec = os .path .join (args .toolchain , 'usr' , ' bin' , 'swift' )
113
+ swift_exec = os .path .join (args .toolchain , 'bin' , 'swift' )
114
114
else :
115
115
swift_exec = 'swift'
116
116
0 commit comments