Tooling/Add experimental clang-cl cross-build - #80
Merged
ZivDero merged 12 commits intoSep 1, 2026
Conversation
Belonit
force-pushed
the
tooling/clang-cl-cross-build
branch
3 times, most recently
from
August 30, 2026 23:12
47a9078 to
d910706
Compare
|
Development builds of e1391a5: The links work without a GitHub account. Artifacts expire after 90 days, and this comment follows the latest successful build. |
ZivDero
requested changes
Aug 31, 2026
Contributor
|
Old cdecl, register keyword and asm issues could be handled in another PR so that get's merged in faster. |
This was referenced Aug 31, 2026
Member
|
Okay should be smaller now |
Member
|
BX_CONFIG_DEBUG + allocator could also be their own PR. Arguably even a fix in general. |
Belonit
force-pushed
the
tooling/clang-cl-cross-build
branch
from
August 31, 2026 16:09
d949e58 to
7de1557
Compare
Belonit
marked this pull request as draft
August 31, 2026 16:39
Belonit
force-pushed
the
tooling/clang-cl-cross-build
branch
from
August 31, 2026 17:18
7de1557 to
7c300ef
Compare
This was referenced Aug 31, 2026
Belonit
force-pushed
the
tooling/clang-cl-cross-build
branch
from
August 31, 2026 17:33
7c300ef to
dce5854
Compare
Belonit
marked this pull request as ready for review
August 31, 2026 17:33
Contributor
Author
|
Updated. |
Belonit
force-pushed
the
tooling/clang-cl-cross-build
branch
from
August 31, 2026 18:16
dce5854 to
36f6838
Compare
Belonit
force-pushed
the
tooling/clang-cl-cross-build
branch
from
September 1, 2026 09:47
a974cb5 to
fea288a
Compare
ZivDero
approved these changes
Sep 1, 2026
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.
Summary
Add an experimental Linux-hosted Win32 cross-build using clang-cl with the MSVC
ABI, headers, and libraries. The branch also makes the C++ sources and legacy
assembly accepted by clang-cl, aligns bgfx render-record allocations, and adds a
VS Code IntelliSense example.
Behavior and compatibility
BX_CONFIG_DEBUGto match the bgfx libraries and allocates bgfx records alignment-correctly, keeping MSVC and clang-cl builds consistent.The codebase may still contain undefined behavior the supported MSVC build does not expose, so a successful clang-cl build is not runtime evidence.
Validate any clang-cl result separately.
Known clang-cl runtime observations:
Validation
built (Release, Ninja) with inherited warnings and no errors; LogStress passed, including 100,000 intact log lines.
Documentation
docs/BUILDING.mddocuments the experimental toolchain requirements,configuration, and the runtime limitation.
Checklist