Skip to content

Optimize toolchain detection for cross-compilation#5

Merged
mochabyte0x merged 2 commits intomochabyte0x:mainfrom
Dx3One:main
Feb 5, 2026
Merged

Optimize toolchain detection for cross-compilation#5
mochabyte0x merged 2 commits intomochabyte0x:mainfrom
Dx3One:main

Conversation

@Dx3One
Copy link
Contributor

@Dx3One Dx3One commented Feb 5, 2026

This update increases Makefile flexibility across different development environments:

Fallback Logic: Prioritizes $(TARGET_TRIPLE)-clang but falls back to standard clang if the specific binary is missing (ideal for LLVM setups with native cross-target support).

Dynamic Path Discovery: Automatically determines TOOLCHAIN_ROOT to eliminate hardcoded paths.

MinGW Compatibility: Dynamically resolves GCC/Win32 library paths. This prevents linking errors when using MinGW toolchains on Linux or macOS.

@mochabyte0x
Copy link
Owner

Thank you! :)

@mochabyte0x mochabyte0x merged commit 55a8304 into mochabyte0x:main Feb 5, 2026
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.

2 participants