From 9edef376f3672aa97a5ea8b9ca89c8e51fb61887 Mon Sep 17 00:00:00 2001 From: David Benepe Date: Fri, 4 Jun 2021 16:13:21 -0500 Subject: [PATCH] Updated asm_processor build.py --- tools/asm_processor/build.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tools/asm_processor/build.py b/tools/asm_processor/build.py index 2c760dcf..019d3db7 100755 --- a/tools/asm_processor/build.py +++ b/tools/asm_processor/build.py @@ -32,8 +32,12 @@ opt_flags = [x for x in compile_args if x in ['-g3', '-g', '-O1', '-O2', '-frame preprocessed_file = tempfile.NamedTemporaryFile(prefix='preprocessed', suffix='.c', delete=False) try: + if '-O2' in opt_flags: + opt_flags.append('-mips1') asmproc_flags = opt_flags + [in_file, '--input-enc', 'utf-8', '--output-enc', 'euc-jp'] compile_cmdline = compiler + compile_args + ['-I', in_dir, '-o', out_file, preprocessed_file.name] + + print(asmproc_flags) asm_processor.run(asmproc_flags, outfile=preprocessed_file) try: