Skip to content

Commit 2f66f2e

Browse files
authored
Fix benchmark profiling logic (#20647)
1 parent 117e71d commit 2f66f2e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

test/test_benchmark.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def build(self, parent, filename, args, shared_args, emcc_args, native_args, nat
211211
] + LLVM_FEATURE_FLAGS
212212
if shared_args:
213213
cmd += shared_args
214-
if common.EMTEST_FORCE64:
214+
if PROFILING:
215215
cmd += ['--profiling']
216216
else:
217217
cmd += ['--closure=1', '-sMINIMAL_RUNTIME']
@@ -220,8 +220,6 @@ def build(self, parent, filename, args, shared_args, emcc_args, native_args, nat
220220
cmd += emcc_args + self.extra_args
221221
if '-sFILESYSTEM' not in cmd and '-sFORCE_FILESYSTEM' not in cmd:
222222
cmd += ['-sFILESYSTEM=0']
223-
if PROFILING:
224-
cmd += ['--profiling-funcs']
225223
self.cmd = cmd
226224
run_process(cmd, env=self.env)
227225
if self.binaryen_opts:

0 commit comments

Comments
 (0)