Skip to content

Prefer the arm64 Visual Studio clang on ARM64#159

Merged
MarkSchofield merged 1 commit intomainfrom
mschofie/clang-vs-arm
Mar 8, 2026
Merged

Prefer the arm64 Visual Studio clang on ARM64#159
MarkSchofield merged 1 commit intomainfrom
mschofie/clang-vs-arm

Conversation

@MarkSchofield
Copy link
Copy Markdown
Owner

@MarkSchofield MarkSchofield commented Mar 8, 2026

When the LLVM toolchain is installed with Visual Studio, three builds are included, x86, x64 and arm64. At the minute, when looking for the clang compiler with Visual Studio Windows.Clang.toolchain.cmake only looks for the x64 version. Whilst this will work on an arm64 OS, it would be more performant to use the arm64 build. This PR changes the find_program HINTS path to prefer the path to the arm64 build on arm64 OS's. #157 unblocks this flexibility.

@MarkSchofield MarkSchofield merged commit 127adc0 into main Mar 8, 2026
25 checks passed
@MarkSchofield MarkSchofield deleted the mschofie/clang-vs-arm branch March 8, 2026 17:31
InCom-0 pushed a commit to InCom-0/cmake_WindowsToolchain that referenced this pull request Mar 10, 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.

1 participant