(name, native, env_init)
| 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], |
nothing calls this directly
no test coverage detected