mirror of
https://github.com/zeldaret/oot
synced 2026-08-19 22:02:29 -04:00
Small asm-processor optimization (#459)
Co-authored-by: zelda2774 <zelda2774@invalid>
This commit is contained in:
@@ -35,7 +35,7 @@ try:
|
||||
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]
|
||||
|
||||
asm_processor.run(asmproc_flags, outfile=preprocessed_file)
|
||||
functions = asm_processor.run(asmproc_flags, outfile=preprocessed_file)
|
||||
try:
|
||||
subprocess.check_call(compile_cmdline)
|
||||
except subprocess.CalledProcessError as e:
|
||||
@@ -47,6 +47,6 @@ try:
|
||||
# To keep the preprocessed file:
|
||||
# os._exit(1)
|
||||
|
||||
asm_processor.run(asmproc_flags + ['--post-process', out_file, '--assembler', assembler_sh, '--asm-prelude', prelude])
|
||||
asm_processor.run(asmproc_flags + ['--post-process', out_file, '--assembler', assembler_sh, '--asm-prelude', prelude], functions=functions)
|
||||
finally:
|
||||
os.remove(preprocessed_file.name)
|
||||
|
||||
Reference in New Issue
Block a user