mirror of
https://github.com/encounter/decomp-permuter.git
synced 2026-07-10 03:18:46 -07:00
Strip asmproc flags during import
This commit is contained in:
@@ -164,8 +164,12 @@ def fixup_build_command(
|
||||
)
|
||||
ind1 = res.index("--", ind0 + 1)
|
||||
ind2 = res.index("--", ind1 + 1)
|
||||
compiler = res[ind0 + 1 : ind1]
|
||||
assembler = res[ind1 + 1 : ind2]
|
||||
res = res[ind0 + 1 : ind1] + res[ind2 + 1 :]
|
||||
compiler_args = res[ind2 + 1 :]
|
||||
while compiler and compiler[0].startswith("-"):
|
||||
compiler.pop(0)
|
||||
res = compiler + compiler_args
|
||||
except ValueError:
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user