Skip to content

Opt out of the MSVC STL's clang version check on Windows - #329

Closed
DicyAgent wants to merge 1 commit into
mainfrom
agent/328-fix-scheduled-tests
Closed

DicyAgent wants to merge 1 commit into
mainfrom
agent/328-fix-scheduled-tests

Conversation

@DicyAgent

@DicyAgent DicyAgent commented Nov 29, 2026 •

Copy link
Copy Markdown
Collaborator

Closes #328

The windows-11-arm job has been red on every scheduled run since that image moved to Visual Studio 2026 (MSVC 14.52), whose standard library refuses a clang older than 22:

yvals_core.h:923:1: error: static assertion failed: error STL1000: Unexpected compiler version, expected Clang 22 or newer.

The LLVM packages pin 21.1.0, so xmake build ens-llvm stopped before any test ran. The check names the clang the STL was tested with rather than the one it can compile for, and _ALLOW_COMPILER_AND_STL_VERSION_MISMATCH is the STL's own opt-out of it, so the Windows targets define it now: the bridge is C++17 and the language server C++20 over a C++17 standard library.

Only xmake.lua changes, inside its is_plat("windows") branch, so no Linux or macOS build differs.

Verified: the project still configures from this worktree on Linux and xmake show -P . resolves it.
Inferred, not run here: that clang 21.1.0 compiles the VS 2026 headers with the check off. This PR's own windows-11-arm job is what answers that.

The durable fix, a pin whose clang the STL accepts, is #330.

Co-authored-by: DicyAgent <354226518+DicyAgent@users.noreply.github.com>
@DicyAgent

Copy link
Copy Markdown
Collaborator Author

Pushed 1d3763d: _ALLOW_COMPILER_AND_STL_VERSION_MISMATCH for the Windows targets, so the VS 2026 STL stops refusing the pinned clang 21.1.0. The residual work, moving the pin to a clang the STL accepts, is #330.

@DicyAgent

Copy link
Copy Markdown
Collaborator Author

Superseded by #343, which takes LLVM 23.1.4 as the compiler, so the Windows STL accepts it and this opt-out is unnecessary.

@DicyAgent DicyAgent closed this Nov 30, 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.

Debug and fix failed scheduled tests

2 participants