Skip to content

Add support for LLVM-based MSVC builds - #1361

Open
tobil4sk wants to merge 8 commits into
HaxeFoundation:masterfrom
tobil4sk:feature/msvc-llvm
Open

tobil4sk wants to merge 8 commits into
HaxeFoundation:masterfrom
tobil4sk:feature/msvc-llvm

Conversation

@tobil4sk

@tobil4sk tobil4sk commented Aug 2, 2026

Copy link
Copy Markdown
Member

This adds a -D HXCPP_MSVC_LLVM flag which allows creating msvc builds using clang-cl instead of cl.

This is useful for native windows builds, however, it also allows cross-compiling msvc binaries from linux by passing -D HXCPP_MSVC_ROOT=/path/to/msvc-root (msvc libs/headers can be downloaded using xwin for example).

Comment thread tools/hxcpp/Compiler.hx Outdated
@tobil4sk
tobil4sk force-pushed the feature/msvc-llvm branch from c8e8380 to b8e80fb Compare August 2, 2026 14:30
@MTUnixic

MTUnixic commented Aug 3, 2026

Copy link
Copy Markdown

hope this gets merged

@HomuHomu833

Copy link
Copy Markdown

could u guys prioritize llvm-mingw too? it would be great.

@MRK2009

MRK2009 commented Sep 17, 2026

Copy link
Copy Markdown

It got conflicted.

@tobil4sk

Copy link
Copy Markdown
Member Author

It would be possible to implement this for a mac host too, but I don't have a mac to test on myself.

could u guys prioritize llvm-mingw too? it would be great.

Btw, for now you can do -D MINGW_ROOT=/opt/llvm-mingw/llvm-mingw-ucrt.

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.

5 participants