MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / main

Function main

system/lib/update_libunwind.py:42–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40
41
42def main():
43 if len(sys.argv) > 1:
44 llvm_dir = os.path.join(os.path.abspath(sys.argv[1]))
45 else:
46 llvm_dir = default_llvm_dir
47 upstream_root = os.path.join(llvm_dir, 'libunwind')
48 upstream_src = os.path.join(upstream_root, 'src')
49 upstream_inc = os.path.join(upstream_root, 'include')
50 assert os.path.exists(upstream_inc)
51 assert os.path.exists(upstream_src)
52
53 # Remove old version
54 clean_dir(local_src)
55 clean_dir(local_inc)
56
57 copy_tree(upstream_src, local_src)
58 copy_tree(upstream_inc, local_inc)
59 shutil.copy2(os.path.join(upstream_root, 'LICENSE.TXT'), local_root)
60
61
62if __name__ == '__main__':

Callers 1

Calls 4

existsMethod · 0.80
clean_dirFunction · 0.70
copy_treeFunction · 0.70
joinMethod · 0.45

Tested by

no test coverage detected