Skip to content

Commit ac5e8bd

Browse files
committed
Remove unneeded sdk
1 parent a331351 commit ac5e8bd

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

pkg_swift_llvm.py

-18
Original file line numberDiff line numberDiff line change
@@ -119,23 +119,6 @@ def copy_includes(src, tgt):
119119
tgtfile.parent.mkdir(parents=True, exist_ok=True)
120120
shutil.copy(srcfile, tgtfile)
121121

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-
139122
def export_stdlibs(exported_dir, swift_build_tree):
140123
ext = 'dylib'
141124
platform = 'linux' if get_platform() == 'linux' else 'macosx'
@@ -199,7 +182,6 @@ def main(opts):
199182
exported.mkdir()
200183
export_libs(exported, libs, swift_build_tree)
201184
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)
203185

204186
zip_dir(exported, opts.output)
205187

0 commit comments

Comments
 (0)