File tree Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Expand file tree Collapse file tree 1 file changed +10
-9
lines changed Original file line number Diff line number Diff line change 18
18
emscripten_root = os .path .dirname (os .path .dirname (script_dir ))
19
19
default_llvm_dir = os .path .join (os .path .dirname (emscripten_root ), 'llvm-project' )
20
20
copy_dirs = [
21
- 'compiler-rt' ,
22
- 'libcxx' ,
23
- 'libcxxabi' ,
24
- 'libunwind' ,
21
+ ('compiler-rt' , 'compiler-rt' ),
22
+ ('libcxx' , 'libcxx' ),
23
+ ('libcxxabi' , 'libcxxabi' ),
24
+ ('libunwind' , 'libunwind' ),
25
+ ('llvm-libc' , 'libc' ),
25
26
]
26
27
27
28
@@ -34,12 +35,12 @@ def main():
34
35
print (f'llvm tree not found: { upstream_root } ' )
35
36
return 1
36
37
37
- for dir in copy_dirs :
38
- assert os .path .exists (os .path .join (upstream_root , dir ))
38
+ for _ , upstream_name in copy_dirs :
39
+ assert os .path .exists (os .path .join (upstream_root , upstream_name ))
39
40
40
- for dir in copy_dirs :
41
- local_dir = os .path .join (script_dir , dir )
42
- upstream_dir = os .path .join (upstream_root , dir )
41
+ for local_name , upstream_name in copy_dirs :
42
+ local_dir = os .path .join (script_dir , local_name )
43
+ upstream_dir = os .path .join (upstream_root , upstream_name )
43
44
print (f'copying { local_dir } -> { upstream_dir } ' )
44
45
shutil .copytree (local_dir , upstream_dir , dirs_exist_ok = True )
45
46
You can’t perform that action at this time.
0 commit comments