Skip to content

compat.glfw: the Win32 backend requires mcpp:c-abi=ucrt - #748

Open
Sunrisepeak wants to merge 1 commit into
mainfrom
feat/glfw-windows-ucrt
Open

Sunrisepeak wants to merge 1 commit into
mainfrom
feat/glfw-windows-ucrt

Conversation

@Sunrisepeak

Copy link
Copy Markdown
Member

The Windows row of compat.glfw states the C library its Win32 backend is written for, as the Linux row states glibc (mcpp SPEC-002 §2.2):

windows = { requires = { "mcpp:c-abi=ucrt" }, ... }

Measured with mcpp 2026.11.10.1 (candidate) on linux-x86_64, the index taken from this branch:

  • --target x86_64-windows-gnu --toolchain llvm@23.1.3: builds.
  • --target x86_64-windows-musl --toolchain llvm@23.1.3: error: glfw@3.4.0.1 requires the c-abi to be ucrt (musl from openkal-musl, graph).

… (mcpp:c-abi=ucrt)

As the Linux row states glibc. The MSVC row, the MinGW-w64 payload and the
mingw-w64-sysroot base (mcpp's mingw-llvm provider, on every host) answer it; a
Windows identity whose C library is another (openkal-musl over openkal-windows)
has no window system and is refused at resolution, naming the requirement,
instead of failing in <windows.h>.

This branch has not been deployed

No deployments
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