Skip to content

Automatically detect other common MIPS toolchains, update build dependencies in README#2765

Open
Thar0 wants to merge 2 commits into
zeldaret:mainfrom
Thar0:more-toolchain-detection
Open

Automatically detect other common MIPS toolchains, update build dependencies in README#2765
Thar0 wants to merge 2 commits into
zeldaret:mainfrom
Thar0:more-toolchain-detection

Conversation

@Thar0
Copy link
Copy Markdown
Collaborator

@Thar0 Thar0 commented May 31, 2026

No description provided.

Comment thread Makefile Outdated
Comment on lines +281 to +284
else ifeq ($(shell type $(N64_INST)/bin/mips64-elf-ld >/dev/null 2>/dev/null; echo $$?), 0) # libdragon
MIPS_BINUTILS_PREFIX := $(N64_INST)/bin/mips64-elf-
else ifeq ($(shell type $(N64_GCCPREFIX)/bin/mips64-elf-ld >/dev/null 2>/dev/null; echo $$?), 0) # libdragon
MIPS_BINUTILS_PREFIX := $(N64_GCCPREFIX)/bin/mips64-elf-
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: I would put the N64_GCCPREFIX option before the N64_INST one as N64_GCCPREFIX overrides N64_INST for the purpose of binutils/gcc paths in libdragon. to rephrase, if you use libdragon and you somehow have the toolchain in both N64_GCCPREFIX and N64_INST, N64_GCCPREFIX would be used https://github.com/DragonMinded/libdragon/blob/07f1977bbb66a8f61d949983342c27915932d5a5/n64.mk#L29

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants