Skip to content

build: add support for llvm-ml in cross-compilation toolchains#1244

Open
500Byte wants to merge 1 commit into
UE4SS-RE:mainfrom
500Byte:build-llvm-ml
Open

build: add support for llvm-ml in cross-compilation toolchains#1244
500Byte wants to merge 1 commit into
UE4SS-RE:mainfrom
500Byte:build-llvm-ml

Conversation

@500Byte

@500Byte 500Byte commented May 8, 2026

Copy link
Copy Markdown

What does this PR do?

Adds support for llvm-ml in the build system to improve cross-compilation toolchains.

The Problem

When cross-compiling (especially for Linux or specific toolchains without native MSVC ml64), the build system lacked explicit support for the LLVM macro assembler (llvm-ml), causing compilation failures or requiring manual build script hacks.

The Solution

Updated the CMake/build configurations to explicitly support llvm-ml as an assembler drop-in, enabling smooth cross-compilation with LLVM-based toolchains.

Updates the LLVM tool discovery logic to find llvm-ml and configures
the xwin-clang toolchains to use it as the MASM assembler. This allows
assembling proxy generator files during Linux-to-Windows cross-compilation.
@UE4SS

UE4SS commented May 8, 2026

Copy link
Copy Markdown
Collaborator

This may be a good change, and it's simple so I can forgive the use of AI, though I'm not happy about it.
I haven't tested it yet, and the PR will remain open for the moment.

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