Skip to content

buildKitVendor etc.. expansion for clang-cl support - #4524

Merged
Garrett Campbell (gcampbell-msft) merged 2 commits into
microsoft:mainfrom
wchou158:main
Jan 23, 2026
Merged

Garrett Campbell (gcampbell-msft) merged 2 commits into
microsoft:mainfrom
wchou158:main

Conversation

@wchou158

Copy link
Copy Markdown
Contributor

This changes user-visible behavior

The following changes are proposed:

  • Added "ClangCl" to the CompilerVendorEnum type
  • Enhanced vendor detection to identify Clang-cl kits by name
  • Updated version detection to treat ClangCl the same as Clang (reusing the same regex)
  • Fixed variable expansion for ${buildKitVendor}, ${buildKitVersionMajor}, etc., when using clang-cl-based kits on Windows

The purpose of this change

When using a clang-cl toolchain on Windows, variables like ${buildKitVendor} and ${buildKitVersionMajor} did not expand correctly in user-defined build directory paths. For example, with Cmake: Build Directory set to

${workspaceFolder}/build-${buildKitHostOs}-${buildKitVendor}${buildKitVersionMajor}-${buildKitTargetArch}-${buildType}

Before:

[cmake] -- Build files have been written to: C:/svn/myApp/build-win32-__unknown_vendor__0-unknown-Debug

After this change:

[cmake] -- Build files have been written to: C:/svn/myApp/build-win32-ClangCl20-x64-Debug
@gcampbell-msft

Copy link
Copy Markdown
Collaborator

Could you add a changelog update? In a new 1.22 section. Thanks!

@wchou158

Copy link
Copy Markdown
Contributor Author

@microsoft-github-policy-service agree

@lygstate

Copy link
Copy Markdown
Contributor

Will Chou (@wchou158) rebase and squash into a single commit

@lygstate

Copy link
Copy Markdown
Contributor

This should fixed #4638

Closes: #4638

@gcampbell-msft
Garrett Campbell (gcampbell-msft) merged commit 3b6980b into microsoft:main Jan 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants