Skip to content

Commit f7ff5a9

Browse files
committed
Add regex parser lib and turn compatibility libs to a glob
1 parent 75dc189 commit f7ff5a9

File tree

1 file changed

+6
-13
lines changed

1 file changed

+6
-13
lines changed

pkg_swift_llvm.py

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -143,20 +143,13 @@ def export_stdlibs(exported_dir, swift_build_tree):
143143
ext = 'so'
144144
lib_dir = swift_build_tree / 'lib/swift' / platform
145145
stdlibs = [
146-
f'libswiftCore.{ext}',
147-
'libswiftCompatibility50.a',
148-
'libswiftCompatibility51.a',
149-
'libswiftCompatibility56.a',
150-
'libswiftCompatibilityBytecodeLayouts.a',
151-
'libswiftCompatibilityConcurrency.a',
152-
'libswiftCompatibilityDynamicReplacements.a']
146+
lib_dir / f'libswiftCore.{ext}',
147+
lib_dir / f'libswift_RegexParser.{ext}',
148+
]
149+
stdlibs.extend(lib_dir.glob('libswiftCompatibility*.a'))
153150
for stdlib in stdlibs:
154-
lib_path = lib_dir / stdlib
155-
if lib_path.exists():
156-
print(f'Copying {stdlib}')
157-
shutil.copy(lib_path, exported_dir)
158-
else:
159-
print(f'Skipping {stdlib}')
151+
print(f'Copying {stdlib}')
152+
shutil.copy(stdlib, exported_dir)
160153

161154

162155
def export_libs(exported_dir, libs, swift_build_tree):

0 commit comments

Comments
 (0)