build(cmake): Add Clang MinGW-w64 cross-compilation toolchain#2469
Draft
JohnsterID wants to merge 1 commit intoTheSuperHackers:mainfrom
Draft
build(cmake): Add Clang MinGW-w64 cross-compilation toolchain#2469JohnsterID wants to merge 1 commit intoTheSuperHackers:mainfrom
JohnsterID wants to merge 1 commit intoTheSuperHackers:mainfrom
Conversation
Add support for building with Clang targeting MinGW-w64 i686 (32-bit Windows). This provides an alternative to GCC for cross-compiling on Linux. Components: - cmake/toolchains/clang-mingw-w64-i686.cmake: Clang cross-compilation toolchain - cmake/mingw.cmake: Add _INTEGRAL_MAX_BITS=64 for Clang compatibility The toolchain auto-detects Clang 17-22 and uses LLD linker when available. Clang requires _INTEGRAL_MAX_BITS to be defined (GCC defines it automatically) for GameSpy SDK 64-bit type definitions. Tested with: - Clang 19.1.7 (Debian) - Clang 22.1.1 (LLVM official release) Usage: cmake -DCMAKE_TOOLCHAIN_FILE=cmake/toolchains/clang-mingw-w64-i686.cmake .. Requirements: apt-get install clang lld mingw-w64
|
Changes to GamespySDK are merged. |
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.
Pending draft after linked PR closed.
Add support for building with Clang targeting MinGW-w64 i686 (32-bit Windows). This provides an alternative to GCC for cross-compiling on Linux.
Components:
The toolchain auto-detects Clang 17-22 and uses LLD linker when available. Clang requires _INTEGRAL_MAX_BITS to be defined (GCC defines it automatically) for GameSpy SDK 64-bit type definitions.
Tested with:
Usage:
cmake -DCMAKE_TOOLCHAIN_FILE=cmake/toolchains/clang-mingw-w64-i686.cmake ..
Requirements:
apt-get install clang lld mingw-w64