Skip to content

Commit 59b5c1d

Browse files
authored
Fuzzing: Emit BINARYEN_PASS_DEBUG in the autoreducer scripts - that env var is the one piece of global state we use (#2237)
1 parent 8d3bc3f commit 59b5c1d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

scripts/fuzz_opt.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,8 @@ def write_commands(commands, filename):
455455
f.write('set -e\n')
456456
for command in commands:
457457
f.write('echo "%s"\n' % command)
458-
f.write(command + ' &> /dev/null\n')
458+
pre = 'BINARYEN_PASS_DEBUG=%s ' % (os.environ.get('BINARYEN_PASS_DEBUG') or '0')
459+
f.write(pre + command + ' &> /dev/null\n')
459460
f.write('echo "ok"\n')
460461

461462

0 commit comments

Comments
 (0)