You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
platform: one macos/macosx spelling rule, and the manifest asks it
Two names for one platform: mcpp's triple vocabulary says macos, an xpkg
descriptor and xlings' project file say macosx. The manifest parser had a
second copy of that fold and a second copy of the host key, both hand-rolled
beside a rule modules/platform already had.
mcpp.platform.axis gains xpkg_platform_key_for, which is now the only place
that knows, and TargetPlatform::for_os is written in terms of it rather than
repeating the table. The manifest reads it for both directions — canonicalising
a written key and folding a requested platform — and takes the host from
xpkg_platform instead of its own #if.
Both spellings are therefore accepted wherever a platform is named, and a new
unit test asserts that the two write the same declaration on every host by
resolving explicitly rather than against the one it runs on.
0 commit comments