File tree Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Expand file tree Collapse file tree 1 file changed +6
-13
lines changed Original file line number Diff line number Diff line change @@ -143,20 +143,13 @@ def export_stdlibs(exported_dir, swift_build_tree):
143
143
ext = 'so'
144
144
lib_dir = swift_build_tree / 'lib/swift' / platform
145
145
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' ))
153
150
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 )
160
153
161
154
162
155
def export_libs (exported_dir , libs , swift_build_tree ):
You can’t perform that action at this time.
0 commit comments