Add Apple Silicon support and optional local toolchain sources - #32
Open
JackTriton wants to merge 3 commits into
Open
Add Apple Silicon support and optional local toolchain sources#32JackTriton wants to merge 3 commits into
JackTriton wants to merge 3 commits into
Conversation
|
I'm not sure about this, it looks like way too much slop again. Really all that needs to be done AFAIK is what shirosoluna says here: OoTRandomizer/homebrew-tap#4 (comment) which is using the system zlib when on macOS. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add Apple Silicon support and optional local toolchain sources
This PR improves macOS Apple Silicon compatibility while keeping the existing Linux, BSD, Intel macOS, and MSYS2 build paths unchanged.
Changes
Detect Homebrew dependencies on Apple Silicon.
Use GNU
sedwhere required by GCC and binutils build scripts.Propagate GMP, MPFR, and MPC include/library paths into recursive configure steps.
Add optional local archives through:
N64_TOOLCHAIN_ARCHIVE_DIRBINUTILS_ARCHIVEGCC_ARCHIVENEWLIB_ARCHIVEGDB_ARCHIVEAdd --disable-toolchain-gdb for builds that do not require GDB. GDB remains enabled by default, preserving the existing source-build behavior.
Apply the Apple Silicon-specific
--disable-werrorworkaround only on Darwin arm64.Preserve GDB as the default for normal source builds.
Replace GNU/Linux-specific file-editing assumptions with portable implementations.
Keep the project generic for N64 development without application-specific behavior.
Compatibility
Existing behavior is preserved on non-Apple-Silicon platforms. Local archives and GDB overrides are optional and do not affect the default online build.