-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Disable asm-processor by default #175
Conversation
link_built_obj = obj.completed(version) and ( | ||
# Don't link asm_processor objects if asm_processor is disabled | ||
config.asm_processor | ||
or not obj.options["asm_processor"] | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this broke my brain. How about
link_built_obj = obj.completed(version)
# Don't link asm_processor objects if asm_processor is disabled
if obj.options["asm_processor"] and not config.asm_processor:
link_built_obj = False
}) | ||
unit_config["metadata"].update( | ||
{ | ||
"complete": obj.completed(version) and not obj.options["asm_processor"], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what exactly does "complete"
mean? should this use the same logic as link_built_obj
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
building with --non-matching
seems to fail (maybe windows only?)
PS F:\github\oot-gc> python configure.py --non-matching
PS F:\github\oot-gc> ninja
[1/154] MWCC build\ce-j\src\emulator\mcardGCN.o
FAILED: build/ce-j/src/emulator/mcardGCN.o
set "BINUTILS_PATH=build\binutils" && sh tools/asm_processor/compile.sh "build\tools\sjiswrap.exe build\compilers\GC\1.1\mwcceppc.exe -Cpp_exceptions off -proc gekko -fp hardware -fp_contract on -enum int -align powerpc -nosyspath -RTTI off -str reuse -multibyte -O4,p -inline auto -nodefaults -msgstyle gcc -sym on -i include -i libc -DNON_MATCHING -DASM_PROCESSOR -inline deferred -i build/ce-j/include -DVERSION=CE_J -MMD" "build\binutils\powerpc-eabi-as.exe -mgekko -I include -I libc" src\emulator\mcardGCN.c build\ce-j\src\emulator\mcardGCN.o
CreateProcess failed: The system cannot find the file specified.
[2/154] MWCC build\ce-j\src\emulator\frame.o
FAILED: build/ce-j/src/emulator/frame.o
set "BINUTILS_PATH=build\binutils" && sh tools/asm_processor/compile.sh "build\tools\sjiswrap.exe build\compilers\GC\1.1\mwcceppc.exe -Cpp_exceptions off -proc gekko -fp hardware -fp_contract on -enum int -align powerpc -nosyspath -RTTI off -str reuse -multibyte -O4,p -inline auto -nodefaults -msgstyle gcc -sym on -i include -i libc -DNON_MATCHING -DASM_PROCESSOR -inline deferred -i build/ce-j/include -DVERSION=CE_J -MMD" "build\binutils\powerpc-eabi-as.exe -mgekko -I include -I libc" src\emulator\frame.c build\ce-j\src\emulator\frame.o
CreateProcess failed: The system cannot find the file specified.
[14/154] MWCC build\ce-j\src\emulator\THPVideoDecode.oninja: fatal: ReadFile: GetLastError() = 6
@@ -136,6 +136,7 @@ | |||
config.generate_map = args.map | |||
config.sjiswrap_path = args.sjiswrap | |||
config.non_matching = args.non_matching | |||
config.asm_processor = args.non_matching |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it's odd to use args.non_matching
to set the asm_processor variable
thinking about it more, it makes sense but idk it looks weird but feel free to ignore
superseded by #185 |
With
--non-matching
, asm-processor is enabled to allow modding builds. CI runs both matching and non-matching builds.