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

Method lib_builder

test/test_benchmark.py:1049–1057  ·  view source on GitHub ↗
(name, native, env_init)

Source from the content-addressed store, hash-verified

1047 copy_asset(f'third_party/lua/{benchmark}.lua')
1048
1049 def lib_builder(name, native, env_init):
1050 # Inject -m64 into node-64 benchmarking runs.
1051 env_init['MYCFLAGS'] = env_init.get('CFLAGS', '')
1052 if '-m64' in env_init['MYCFLAGS']:
1053 env_init['MYLDFLAGS'] = '-m64'
1054
1055 # We force recomputation for the native benchmarker because this benchmark
1056 # uses native_exec=True, so we need to copy the native executable
1057 return self.get_library(os.path.join('third_party', 'lua_native' if native else 'lua'), [os.path.join('src', 'lua.o'), os.path.join('src', 'liblua.a')], make=['make', 'generic'], configure=None, native=native, cache_name_extra=name, env_init=env_init, force_rebuild=native)
1058
1059 self.do_benchmark('lua_' + benchmark, '', expected,
1060 force_c=True, args=[benchmark + '.lua', DEFAULT_ARG],

Callers

nothing calls this directly

Calls 4

get_libraryMethod · 0.80
get_poppler_libraryMethod · 0.80
getMethod · 0.65
joinMethod · 0.45

Tested by

no test coverage detected