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

Function get_lib_dir

tools/cache.py:112–130  ·  view source on GitHub ↗
(absolute)

Source from the content-addressed store, hash-verified

110
111
112def get_lib_dir(absolute):
113 ensure_setup()
114 path = Path(get_sysroot(absolute=absolute), 'lib')
115 if settings.MEMORY64:
116 path = Path(path, 'wasm64-emscripten')
117 else:
118 path = Path(path, 'wasm32-emscripten')
119 # if relevant, use a subdir of the cache
120 subdir = []
121 if settings.LTO:
122 if settings.LTO == 'thin':
123 subdir.append('thinlto')
124 else:
125 subdir.append('lto')
126 if settings.MAIN_MODULE or settings.SIDE_MODULE:
127 subdir.append('pic')
128 if subdir:
129 path = Path(path, '-'.join(subdir))
130 return path
131
132
133def get_lib_name(name, absolute=False):

Callers 1

get_lib_nameFunction · 0.85

Calls 4

ensure_setupFunction · 0.85
get_sysrootFunction · 0.85
appendMethod · 0.80
joinMethod · 0.45

Tested by

no test coverage detected