Skip to content

mcpp 2026.11.22.1: static-API macros on Windows, the workspace's indices, 28 wrapper revisions, sdl2 and taskflow under clang 23 - #873

Open
Sunrisepeak wants to merge 11 commits into
mainfrom
chore/ci-mcpp-2026.11.21.1
Open

Sunrisepeak wants to merge 11 commits into
mainfrom
chore/ci-mcpp-2026.11.21.1

Conversation

@Sunrisepeak

@Sunrisepeak Sunrisepeak commented Nov 22, 2026 •

Copy link
Copy Markdown
Member

This PR is the mcpp-index side of the round (design 2026-11-22, mcpp 2026.11.22.1).

  • The CI uses mcpp 2026.11.22.1 (validate, xpkgindex-update, openkal-compat, tests/openkal/pins.toml). The index floor (min_mcpp) is unchanged. The installed-template check reads the key that a written prefix selects (SPEC-001 §4.5).
  • Windows: a static library states its static-API macro for every TU that includes its headers. This was the root cause of the startup crash, exit 133, in archive and libarchive-bundle:
    • lzma.h and archive.h declare their functions dllimport unless the macro is set. A consumer then called through __imp_ slots that lld-link creates for the local definitions.
    • A link that collects sections dropped the functions behind those slots. MSVC's link.exe keeps them; lld-link does not (lld-link /OPT:REF drops a locally defined function reached only through an __imp_ slot (upstream LLVM) mcpp-community/mcpp#1002).
    • compat.xz, compat.libarchive, compat.fribidi and compat.libcoro now state the macro as a staticlib feature that default implies, as compat.curl and compat.c-ares already did.
    • compat.cpptrace, compat.libassert and compat.yaml-cpp now use the same feature in place of their #include_next shims.
    • The schema documentation now states that a feature's defines reach the consumers.
    • With the fix, both members pass on windows-2022.
  • compat.sdl2 and taskflow.taskflow compile under clang 23's MSVC ABI (revision 1). compat.sdl2 backports the _m_prefetch guard, and taskflow.taskflow changes the two static inline functions to inline.
  • The workspace states no index; each member states the one it tests through. A [workspace.indices] entry would have given 79 members two names for the checkout, which mcpp 2026.11.22.1 refuses (index-location-named-twice). The 62 empty [indices] tables are removed. Dotted dependency selectors are unquoted.
  • 28 wrapper revisions whose templates write the selector unquoted. Every newest template was measured. GitCode carries the same bytes where the package had a CN mirror. The installed-template checks name the revisions and refuse a template that writes a quoted key.
  • CHANGELOG entries for all of the above.

…3's MSVC ABI (revision 1)

compat.sdl2: clang 23 makes _m_prefetch a builtin, and SDL 2.32.10's
SDL_endian.h defines it for an MSVC-ABI clang; install() backports the SDL2
branch's !_SDL_HAS_BUILTIN(_m_prefetch) guard, which no 2.32.x release
carries yet. taskflow.taskflow: tfprof.hpp's two namespace-scope static
inline helpers are included by two module partitions, and their MSVC
mangled names collide in a TU importing tf; install() makes them inline.
Neither member had run on Windows in a full sweep since the Windows leg moved
to llvm@23.1.3.
…ates none; dependency selectors unquoted

The root's [indices] compat = { path = "." } reached members by position,
a reading mcpp removes in 2027.1, and [workspace.indices] would merge it into
the members that name this checkout under another namespace (refused by mcpp
as index-location-named-twice) and into the mwrap members beside their
candidate index. The 149 members it reached state compat themselves; the 62
members whose empty [indices] only opted out of it state none. 29 members
write their dependency selectors unquoted (quoted-dotted-dependency-key,
deprecated 2026.11.8.1, removed 2027.2).
…TU that includes it

lzma.h and archive.h declare dllimport unless LZMA_API_STATIC and
LIBARCHIVE_STATIC are defined. A consumer without them called through
__imp_ slots lld-link made for the local definitions, and a link that
collects sections (a test's link since mcpp 2026.11.9.1) dropped the
functions behind them: the archive members exited 133 at their first call
(mcpp#1002). MSVC's link.exe keeps the functions; lld-link does not.

compat.xz, compat.libarchive, compat.fribidi and compat.libcoro state the
macro as a staticlib feature that default implies, as compat.curl and
compat.c-ares do. compat.cpptrace, compat.libassert and compat.yaml-cpp
carried theirs through #include_next shims; they use the same feature, and
the shims are removed. The schema documentation states that a feature's
defines reach consumers.
…quoted

fribidi 1.0.16.1, imgui 1.92.8.1, libarchive 3.8.7.1, libpng 1.6.43.1,
lua 5.4.7.1, miniaudio 0.11.25.1, pocketpy 2.2.0.1, quickjs_ng 0.17.0.1,
sdl3 3.4.18.1, xxhash 0.8.3.1, xz 5.8.3.2, zlib 1.3.2.1 and zstd 1.5.7.1;
GitCode carries the same bytes where the package had a CN mirror. The
installed-template checks name the revisions, and the check refuses a
template that writes its dependency key quoted instead of allowing its
deprecation warning.
…nquoted

accesskit 0.23.1.1, box2d 3.2.0.1, concurrentqueue 1.0.5.1, dr_libs
2026.03.03.1, freetype 2.13.3.1, godot_cpp 10.0.0.1, harfbuzz 14.3.0.1,
libc 17.0.0.1, libvpx 1.17.0.1, libwebp 1.5.0.1, md4c 0.5.3.1, mimalloc
3.6.1.1, opus 1.6.1.1 and sheenbidi 3.0.0.1, whose latest templates wrote
"{{self.name}}" as well (measured on each latest tag's
templates/**/mcpp.toml.in); GitCode carries the same bytes where the
package had a CN mirror. The installed-template checks name the revisions.
mwrap-b10069.1 was tagged and never released: its release gate ran on a
runner image whose clang reads the API snapshot differently. b10069.2
carries the same template change; GitCode carries the same bytes.
… the workspace's indices, 28 wrapper revisions, mcpp 2026.11.22.1)
@Sunrisepeak Sunrisepeak changed the title ci: mcpp 2026.11.21.1 mcpp 2026.11.22.1: static-API macros on Windows, the workspace's indices, 28 wrapper revisions, sdl2 and taskflow under clang 23 Nov 22, 2026
…cts the uapi removal by kernel-abi = openkal

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