File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 70
70
up). Note that these may take longer to show up than 1 and 2.
71
71
'''
72
72
73
+ import glob
73
74
import os
74
75
import subprocess
75
76
import sys
135
136
tar .add (libbinaryen , arcname = f'lib/libbinaryen{ suffix } ' )
136
137
137
138
# The emsdk build also includes some more necessary files.
138
- for name in [f'libc++{ suffix } ' , f'libc++{ suffix } .2' , f'libc++{ suffix } .2.0' ]:
139
- path = os .path .join (binaryen_lib , name )
140
- if os .path .exists (path ):
141
- print (f' ......... : { path } ' )
142
- tar .add (path , arcname = f'lib/{ name } ' )
139
+ for lib in ['libc++' , 'libmimalloc' ]:
140
+ # Include the main name plus any NAME.2.0 and such.
141
+ # TODO: Using ldd/otool would be better, to find the actual
142
+ # dependencies of libbinaryen. Using glob like this will
143
+ # pick up stale contents in the directory.
144
+ full_lib = os .path .join (binaryen_lib , lib ) + suffix
145
+ for path in glob .glob (f'{ full_lib } *' ):
146
+ print (f' ............. : { path } ' )
147
+ tar .add (path , arcname = f'lib/{ os .path .basename (path )} ' )
143
148
144
149
# Add tests we will use as initial content under initial/. We put all the
145
150
# tests from the test suite there.
You can’t perform that action at this time.
0 commit comments