Skip to content

Commit

Permalink
Fix lua benchmarks. (#22636)
Browse files Browse the repository at this point in the history
Fixes #22618
  • Loading branch information
brendandahl authored Sep 26, 2024
1 parent e28fb3f commit 10a67f2
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions test/test_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -983,12 +983,7 @@ def lua(self, benchmark, expected, output_parser=None, args_processor=None):
def lib_builder(name, native, env_init):
# We force recomputation for the native benchmarker because this benchmark
# uses native_exec=True, so we need to copy the native executable
ret = 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)
if native:
return ret
shutil.copyfile(ret[0], ret[0] + '.bc')
ret[0] += '.bc'
return ret
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)

self.do_benchmark('lua_' + benchmark, '', expected,
force_c=True, args=[benchmark + '.lua', DEFAULT_ARG],
Expand Down

0 comments on commit 10a67f2

Please sign in to comment.