Skip to content

misc: fix litehtml mingw-w64 build#3618

Merged
pbek merged 1 commit into
pbek:mainfrom
lazka:mingw-fix
May 19, 2026
Merged

misc: fix litehtml mingw-w64 build#3618
pbek merged 1 commit into
pbek:mainfrom
lazka:mingw-fix

Conversation

@lazka
Copy link
Copy Markdown
Contributor

@lazka lazka commented May 18, 2026

The noexcept compat shim in os_types.h uses #if _MSC_VER < 1900. When building with clang on Windows, _MSC_VER is undefined and evaluates to 0, which is < 1900, so noexcept gets blanked out globally, breaking all of libc++. Guard it with defined(_MSC_VER) so it only fires for actual old MSVC.


Here is an example build log that failed: https://github.com/msys2/MINGW-packages/actions/runs/24926398391/job/72996953935?pr=29152#step:9:541

The noexcept compat shim in os_types.h uses `#if _MSC_VER < 1900`.
When building with clang on Windows, _MSC_VER is undefined and evaluates
to 0, which is < 1900, so `noexcept` gets blanked out globally, breaking
all of libc++. Guard it with `defined(_MSC_VER)` so it only fires for
actual old MSVC.
@pbek pbek merged commit 10840a7 into pbek:main May 19, 2026
39 checks passed
@pbek
Copy link
Copy Markdown
Owner

pbek commented May 19, 2026

Thank you!

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