Skip to content

Commit 8689f64

Browse files
authored
mcpp.platforms 0.1.0 lists every host (#818)
The entry listed Linux hosts only, so a macOS or Windows host could not install the package and the rows it serves could not be built there from the index (measured in mcpp's e2e 1116, mcpp-community/mcpp#951). A member names the release for those rows.
1 parent 89c0526 commit 8689f64

5 files changed

Lines changed: 55 additions & 2 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,10 @@
116116
该检查同时按新的位置核对 SDK 的许可文件,并为本次运行请求项目根的编译数据库(`MCPP_COMPILE_COMMANDS`;mcpp 2026.10.26.1 起只在
117117
请求时写出),模板生成的清单保持原样;`mcpp pack` 改用 `--pkg-format`。
118118

119+
- **mcpp.platforms 0.1.0 的条目列出每种宿主。** 条目此前只列 Linux,macOS 与 Windows 宿主无法安装该包
120+
(`has no build for windows`),它服务的行在这两种宿主上无法经索引构建(mcpp e2e 1116 测得)。包是一份陈述,
121+
各宿主使用同一个归档。 测试成员 `tests/examples/mcpp-platforms` 为这些行指名此版本;行由包自己的 CI 在三种宿主上构建。
122+
119123
- **CI 的 mcpp 由 2026.11.17.1 改为 2026.11.17.2**(validate、xpkgindex-update 与 openkal-compat):该版的默认平台为
120124
openkal-platform 0.29.1,安装 ninja `1.12.1-mcpp.1`,随带 xlings 2026.11.17.2。
121125

‎mcpp.toml‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ members = [
9494
"tests/examples/cuda-driver",
9595
"tests/examples/curl",
9696
"tests/examples/djgpp-platform",
97+
"tests/examples/mcpp-platforms",
9798
"tests/examples/doctest",
9899
"tests/examples/dr_libs",
99100
"tests/examples/eigen",

‎pkgs/m/mcpp.platforms.lua‎

Lines changed: 27 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,12 @@
1010
-- 0.1.0 (package floor mcpp 2026.11.17.1): FreeBSD 14.5, NetBSD 10.2 and
1111
-- OpenBSD 8.0, x86_64 and aarch64. NetBSD's C++ layer is libc++ from source
1212
-- (llvm.libcxx), so `import std` holds over the release's GCC 10 libstdc++
13-
-- base. Runners: FreeBSD (both), NetBSD and OpenBSD (x86_64). The rows build on
14-
-- Linux hosts (mcpp-community/mcpp-platforms#1).
13+
-- base. Runners: FreeBSD (both), NetBSD and OpenBSD (x86_64). The package is the
14+
-- same on every host, and the entry lists each: it listed Linux alone, and a
15+
-- macOS or Windows host could not install it ("has no build for windows"), so
16+
-- the rows it serves could not be built there from the index (measured in
17+
-- mcpp's e2e 1116, mcpp-community/mcpp#951). The rows build on Linux, macOS and
18+
-- Windows hosts with mcpp 2026.11.18.1 (mcpp-community/mcpp-platforms#4).
1519
package = {
1620
spec = "1",
1721
namespace = "mcpp",
@@ -33,6 +37,7 @@ package = {
3337

3438
-- The descriptor points at the source archive of the tag; the CN asset is the
3539
-- same bytes, so one sha256 names both.
40+
-- One archive for every host: the package is a statement, not a program.
3641
xpm = {
3742
linux = {
3843
["0.1.0"] = {
@@ -44,6 +49,26 @@ package = {
4449
},
4550
["latest"] = { ref = "0.1.0" },
4651
},
52+
macosx = {
53+
["0.1.0"] = {
54+
url = {
55+
GLOBAL = "https://github.com/mcpp-community/mcpp-platforms/archive/refs/tags/0.1.0.tar.gz",
56+
CN = "https://gitcode.com/mcpp-res/mcpp-platforms/releases/download/0.1.0/mcpp-platforms-0.1.0.tar.gz",
57+
},
58+
sha256 = "bd09836f9952af28ede3f9c4568aafd999ace803f2cad21fed0aa4ca495893f3",
59+
},
60+
["latest"] = { ref = "0.1.0" },
61+
},
62+
windows = {
63+
["0.1.0"] = {
64+
url = {
65+
GLOBAL = "https://github.com/mcpp-community/mcpp-platforms/archive/refs/tags/0.1.0.tar.gz",
66+
CN = "https://gitcode.com/mcpp-res/mcpp-platforms/releases/download/0.1.0/mcpp-platforms-0.1.0.tar.gz",
67+
},
68+
sha256 = "bd09836f9952af28ede3f9c4568aafd999ace803f2cad21fed0aa4ca495893f3",
69+
},
70+
["latest"] = { ref = "0.1.0" },
71+
},
4772
},
4873

4974
-- The package's own manifest, at the archive root.
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# mcpp:platforms test project. The package serves the rows of FreeBSD, NetBSD
2+
# and OpenBSD, which no member of this repository builds: the member names the
3+
# release for those rows, and the rows are built on Linux, macOS and Windows
4+
# hosts (and run where an image exists) by the package's own CI
5+
# (mcpp-community/mcpp-platforms) and by mcpp's e2e 1116. On a runner the
6+
# member's host build checks that a project naming the platform for another row
7+
# resolves, builds and tests unaffected.
8+
[package]
9+
name = "mcpp-platforms-tests"
10+
version = "0.1.0"
11+
12+
[target.'cfg(any(os = "freebsd", os = "netbsd", os = "openbsd"))']
13+
platform = "mcpp.platforms@0.1.0"
14+
15+
[indices]
16+
mcpplibs = { path = "../../.." }
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// The member's host build: a row other than the platform's is untouched by it.
2+
import std;
3+
4+
int main() {
5+
std::println("host row unaffected by mcpp:platforms");
6+
return 0;
7+
}

0 commit comments

Comments
 (0)