@@ -44,10 +44,10 @@ def get_swiftpm_options(args):
44
44
swiftpm_args += [
45
45
# Dispatch headers
46
46
'-Xcxx' , '-I' , '-Xcxx' ,
47
- os .path .join (args .toolchain , 'usr' , ' lib' , 'swift' ),
47
+ os .path .join (args .toolchain , 'lib' , 'swift' ),
48
48
# For <Block.h>
49
49
'-Xcxx' , '-I' , '-Xcxx' ,
50
- os .path .join (args .toolchain , 'usr' , ' lib' , 'swift' , 'Block' ),
50
+ os .path .join (args .toolchain , 'lib' , 'swift' , 'Block' ),
51
51
]
52
52
53
53
if 'ANDROID_DATA' in os .environ :
@@ -66,7 +66,7 @@ def get_swiftpm_options(args):
66
66
return swiftpm_args
67
67
68
68
def install (swiftpm_bin_path , toolchain ):
69
- toolchain_bin = os .path .join (toolchain , 'usr' , ' bin' )
69
+ toolchain_bin = os .path .join (toolchain , 'bin' )
70
70
for exe in ['sourcekit-lsp' ]:
71
71
install_binary (exe , swiftpm_bin_path , toolchain_bin , toolchain )
72
72
@@ -77,7 +77,7 @@ def install_binary(exe, source_dir, install_dir, toolchain):
77
77
78
78
if platform .system () == 'Darwin' :
79
79
result_path = os .path .join (install_dir , exe )
80
- stdlib_rpath = os .path .join (toolchain , 'usr' , ' lib' , 'swift' , 'macosx' )
80
+ stdlib_rpath = os .path .join (toolchain , 'lib' , 'swift' , 'macosx' )
81
81
delete_rpath (stdlib_rpath , result_path )
82
82
83
83
def delete_rpath (rpath , binary ):
@@ -157,7 +157,7 @@ def add_common_args(parser):
157
157
args .toolchain = os .path .abspath (args .toolchain )
158
158
159
159
if args .toolchain :
160
- swift_exec = os .path .join (args .toolchain , 'usr' , ' bin' , 'swift' )
160
+ swift_exec = os .path .join (args .toolchain , 'bin' , 'swift' )
161
161
else :
162
162
swift_exec = 'swift'
163
163
0 commit comments