@@ -119,23 +119,6 @@ def copy_includes(src, tgt):
119
119
tgtfile .parent .mkdir (parents = True , exist_ok = True )
120
120
shutil .copy (srcfile , tgtfile )
121
121
122
-
123
- def export_sdk (tgt , swift_source_tree , swift_build_tree ):
124
- print ("assembling sdk" )
125
- srcdir = swift_build_tree / "lib" / "swift"
126
- tgtdir = tgt / "usr" / "lib" / "swift"
127
- if get_platform () == "linux" :
128
- srcdir /= "linux"
129
- tgtdir /= "linux/x86_64"
130
- else :
131
- srcdir /= "macosx"
132
- for mod in srcdir .glob ("*.swiftmodule" ):
133
- shutil .copytree (mod , tgtdir / mod .name )
134
- shutil .copytree (swift_source_tree / "stdlib" / "public" / "SwiftShims" / "swift" / "shims" ,
135
- tgt / "usr" / "lib" / "swift" / "shims" ,
136
- ignore = shutil .ignore_patterns ('CMakeLists.txt' ))
137
-
138
-
139
122
def export_stdlibs (exported_dir , swift_build_tree ):
140
123
ext = 'dylib'
141
124
platform = 'linux' if get_platform () == 'linux' else 'macosx'
@@ -199,7 +182,6 @@ def main(opts):
199
182
exported .mkdir ()
200
183
export_libs (exported , libs , swift_build_tree )
201
184
export_headers (exported , opts .swift_source_tree , llvm_build_tree , swift_build_tree )
202
- export_sdk (exported / "sdk" , opts .swift_source_tree , swift_build_tree )
203
185
204
186
zip_dir (exported , opts .output )
205
187
0 commit comments