Skip to content

Commit 10a67f2

Browse files
authored
Fix lua benchmarks. (#22636)
Fixes #22618
1 parent e28fb3f commit 10a67f2

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

test/test_benchmark.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -983,12 +983,7 @@ def lua(self, benchmark, expected, output_parser=None, args_processor=None):
983983
def lib_builder(name, native, env_init):
984984
# We force recomputation for the native benchmarker because this benchmark
985985
# uses native_exec=True, so we need to copy the native executable
986-
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)
987-
if native:
988-
return ret
989-
shutil.copyfile(ret[0], ret[0] + '.bc')
990-
ret[0] += '.bc'
991-
return ret
986+
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)
992987

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

0 commit comments

Comments
 (0)