Repository navigation
Expand file tree
/
Copy pathmcpp.platforms.lua
More file actions
131 lines (128 loc) · 7.09 KB
/
Copy pathmcpp.platforms.lua
File metadata and controls
131 lines (128 loc) · 7.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
-- mcpp:platforms -- rows for systems the engine does not carry: each system's
-- triples, the base each row links against (a sysroot package of xim) and,
-- where an image of the system exists, the runner that boots it (mcpp SPEC-013,
-- SPEC-016). A project selects the package for the rows it builds:
--
-- [target.'cfg(any(os = "freebsd", os = "netbsd", os = "openbsd"))']
-- platform = "mcpp.platforms@0.1.0"
-- runner = true # consent to the row's runner (fetches an image)
--
-- 0.1.0 (package floor mcpp 2026.11.17.1): FreeBSD 14.5, NetBSD 10.2 and
-- OpenBSD 8.0, x86_64 and aarch64. NetBSD's C++ layer is libc++ from source
-- (llvm.libcxx), so `import std` holds over the release's GCC 10 libstdc++
-- base. Runners: FreeBSD (both), NetBSD and OpenBSD (x86_64). The package is the
-- same on every host, and the entry lists each: it listed Linux alone, and a
-- macOS or Windows host could not install it ("has no build for windows"), so
-- the rows it serves could not be built there from the index (measured in
-- mcpp's e2e 1116, mcpp-community/mcpp#951). The rows build on Linux, macOS and
-- Windows hosts with mcpp 2026.11.18.1 (mcpp-community/mcpp-platforms#4).
--
-- 0.2.0 (floor unchanged): GNU/Hurd (x86_64-hurd, Debian's base at the versions of
-- the image it runs in) and Haiku (x86_64-haiku, hrev60431), each compiling
-- `import std` over GCC 15's std module and run in the system's image through dirun
-- (mcpp-community/mcpp-platforms#5). Both build on Linux hosts, Hurd also on macOS;
-- not on Windows (mcpp-community/mcpp#965), and Haiku not on a case-insensitive
-- file system (its string.h and String.h).
--
-- 0.2.1 (floor unchanged): aarch64-netbsd and aarch64-openbsd gain a runner, as
-- aarch64-freebsd has one: dirun boots xim's aarch64-netbsd-disk-image@10.2 and
-- aarch64-openbsd-disk-image@8.0 in qemu-system-aarch64's virt machine with the
-- EDK II firmware of xim's ovmf (translated on an x86_64 host); no row changes
-- (mcpp-community/mcpp-platforms#6).
package = {
spec = "1",
namespace = "mcpp",
name = "platforms",
description = "Rows for systems the engine does not carry (FreeBSD, NetBSD, OpenBSD, GNU/Hurd, Haiku): their definitions, bases and runners, as one versioned statement mcpp reads",
licenses = {"Apache-2.0"},
repo = "https://github.com/mcpp-community/mcpp-platforms",
type = "package",
-- The rows this platform serves, for mcpp's platform column (SPEC-013 §14): derived
-- from the newest version's manifest by tools/platform_rows.py, never written by hand.
platform_rows = { "aarch64-freebsd", "aarch64-netbsd", "aarch64-openbsd", "x86_64-freebsd", "x86_64-haiku", "x86_64-hurd", "x86_64-netbsd", "x86_64-openbsd" },
extensions = {
autoupdate = {
tag = "${version}",
url = "https://github.com/mcpp-community/mcpp-platforms/archive/refs/tags/${tag}.tar.gz",
},
},
-- The descriptor points at the source archive of the tag; the CN asset is the
-- same bytes, so one sha256 names both.
-- One archive for every host: the package is a statement, not a program.
xpm = {
linux = {
["0.2.1"] = {
url = {
GLOBAL = "https://github.com/mcpp-community/mcpp-platforms/archive/refs/tags/0.2.1.tar.gz",
CN = "https://gitcode.com/mcpp-res/mcpp-platforms/releases/download/0.2.1/mcpp-platforms-0.2.1.tar.gz",
},
sha256 = "5e0116a157a8f24e38021fdadab5f940d43792f96759304a788b065c1417eb39",
},
["0.2.0"] = {
url = {
GLOBAL = "https://github.com/mcpp-community/mcpp-platforms/archive/refs/tags/0.2.0.tar.gz",
CN = "https://gitcode.com/mcpp-res/mcpp-platforms/releases/download/0.2.0/mcpp-platforms-0.2.0.tar.gz",
},
sha256 = "27ab1a3d4d18f0075cbd8888e8894737eb524cfefcd2d3c673a357ea283a66b6",
},
["0.1.0"] = {
url = {
GLOBAL = "https://github.com/mcpp-community/mcpp-platforms/archive/refs/tags/0.1.0.tar.gz",
CN = "https://gitcode.com/mcpp-res/mcpp-platforms/releases/download/0.1.0/mcpp-platforms-0.1.0.tar.gz",
},
sha256 = "bd09836f9952af28ede3f9c4568aafd999ace803f2cad21fed0aa4ca495893f3",
},
["latest"] = { ref = "0.2.1" },
},
macosx = {
["0.2.1"] = {
url = {
GLOBAL = "https://github.com/mcpp-community/mcpp-platforms/archive/refs/tags/0.2.1.tar.gz",
CN = "https://gitcode.com/mcpp-res/mcpp-platforms/releases/download/0.2.1/mcpp-platforms-0.2.1.tar.gz",
},
sha256 = "5e0116a157a8f24e38021fdadab5f940d43792f96759304a788b065c1417eb39",
},
["0.2.0"] = {
url = {
GLOBAL = "https://github.com/mcpp-community/mcpp-platforms/archive/refs/tags/0.2.0.tar.gz",
CN = "https://gitcode.com/mcpp-res/mcpp-platforms/releases/download/0.2.0/mcpp-platforms-0.2.0.tar.gz",
},
sha256 = "27ab1a3d4d18f0075cbd8888e8894737eb524cfefcd2d3c673a357ea283a66b6",
},
["0.1.0"] = {
url = {
GLOBAL = "https://github.com/mcpp-community/mcpp-platforms/archive/refs/tags/0.1.0.tar.gz",
CN = "https://gitcode.com/mcpp-res/mcpp-platforms/releases/download/0.1.0/mcpp-platforms-0.1.0.tar.gz",
},
sha256 = "bd09836f9952af28ede3f9c4568aafd999ace803f2cad21fed0aa4ca495893f3",
},
["latest"] = { ref = "0.2.1" },
},
windows = {
["0.2.1"] = {
url = {
GLOBAL = "https://github.com/mcpp-community/mcpp-platforms/archive/refs/tags/0.2.1.tar.gz",
CN = "https://gitcode.com/mcpp-res/mcpp-platforms/releases/download/0.2.1/mcpp-platforms-0.2.1.tar.gz",
},
sha256 = "5e0116a157a8f24e38021fdadab5f940d43792f96759304a788b065c1417eb39",
},
["0.2.0"] = {
url = {
GLOBAL = "https://github.com/mcpp-community/mcpp-platforms/archive/refs/tags/0.2.0.tar.gz",
CN = "https://gitcode.com/mcpp-res/mcpp-platforms/releases/download/0.2.0/mcpp-platforms-0.2.0.tar.gz",
},
sha256 = "27ab1a3d4d18f0075cbd8888e8894737eb524cfefcd2d3c673a357ea283a66b6",
},
["0.1.0"] = {
url = {
GLOBAL = "https://github.com/mcpp-community/mcpp-platforms/archive/refs/tags/0.1.0.tar.gz",
CN = "https://gitcode.com/mcpp-res/mcpp-platforms/releases/download/0.1.0/mcpp-platforms-0.1.0.tar.gz",
},
sha256 = "bd09836f9952af28ede3f9c4568aafd999ace803f2cad21fed0aa4ca495893f3",
},
["latest"] = { ref = "0.2.1" },
},
},
-- The package's own manifest, at the archive root.
mcpp = "*/mcpp.toml",
}