Skip to content

Commit 285732b

Browse files
Fixtures from mcpp 2026.10.27.1: a target row names its platform as a package spec, a plan states the platform and the host's in its configuration, a wrapped program's launch is resolved by --print-launch; toolchains stated per target system, so the ok-image targets take openkal-platform 0.17.2's; os by its 0.2.1 branch
Co-authored-by: speak-agent <248744407+speak-agent@users.noreply.github.com>
1 parent c2af363 commit 285732b

24 files changed

Lines changed: 2566 additions & 287 deletions

‎mcpp.lock‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
# file must not change depending on which command ran last.
66
version = 2
77

8+
[package."os"]
9+
version = "os-0.2.1"
10+
source = "git+https://github.com/mcpplibs/os.git#branch=os-0.2.1@211e765edbed99ef02526c45af9da988f6e48399"
11+
hash = "fnv1a:e9ea51f425a4832f"
12+
813
[package."openkal"]
914
namespace = "mcpplibs"
1015
version = "0.17.1"
@@ -17,12 +22,6 @@ version = "0.18.2"
1722
source = "index+mcpplibs@0.18.2"
1823
hash = "fnv1a:2947b54ddbcf8813"
1924

20-
[package."os"]
21-
namespace = "mcpplibs"
22-
version = "0.2.0"
23-
source = "index+mcpplibs@0.2.0"
24-
hash = "fnv1a:2fbee4a8617c3781"
25-
2625
[package."nlohmann.json"]
2726
namespace = "nlohmann"
2827
version = "3.12.0"

‎mcpp.toml‎

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -14,20 +14,24 @@ description = "The IDE backend for mcpp: sessions, jobs, records and view models
1414
license = "Apache-2.0"
1515
authors = ["mcpp-community"]
1616
repo = "https://github.com/mcpp-community/mcpp-ide"
17-
mcpp = ">=2026.10.26.1"
17+
mcpp = ">=2026.10.27.1"
1818

1919
[language]
2020
standard = "c++23"
2121
modules = true
2222
import_std = true
2323

2424
# As mcpp itself builds: GCC on Linux, the xlings LLVM on macOS and Windows, each for its own
25-
# system. The Linux programs the editor packages carry are static musl ones, cross-built for arm64
26-
# from x86_64 as well (the target table pins musl-gcc for both rows).
27-
[toolchain]
28-
default = "gcc@16.1.0"
29-
macos = "llvm@23.1.3"
30-
windows = "llvm@23.1.3"
25+
# system. Stated per target system, so a target whose platform states its toolchain -- the ok
26+
# images the editor packages carry (`<arch>-openkal`, openkal-platform's llvm) -- takes it.
27+
[target.'cfg(linux)']
28+
toolchain = "gcc@16.1.0"
29+
30+
[target.'cfg(macos)']
31+
toolchain = "llvm@23.1.3"
32+
33+
[target.'cfg(windows)']
34+
toolchain = "llvm@23.1.3"
3135

3236
# An arm64 Linux machine's own programs: the xlings gcc payload has no aarch64-hosted C++ frontend.
3337
[target.aarch64-linux-gnu]
@@ -59,7 +63,10 @@ kind = "bin"
5963
main = "src/bin/dev.cpp"
6064

6165
[dependencies]
62-
os = "0.2.0"
66+
# os 0.2.1 (mcpplibs/os#7): an ok image's C library, C++ run-time and loader are its platform's,
67+
# so the package declares no openkal-tools of its own beside the platform's. By its branch until
68+
# it is published.
69+
os = { git = "https://github.com/mcpplibs/os.git", branch = "os-0.2.1" }
6370

6471
[dependencies.nlohmann]
6572
json = "3.12.0"

‎protocol/fixtures/build-database.json‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"ide": {
55
"generator": {
66
"name": "mcpp",
7-
"version": "2026.10.26.2"
7+
"version": "2026.10.27.1"
88
},
99
"profile-version": "0.3.0",
1010
"toolchains": {
@@ -60,20 +60,20 @@
6060
"-c",
6161
"@ROOT@/src/main.cpp",
6262
"-o",
63-
"@HOME@/.mcpp/cache/build-database/784dcf29dac2b1c4/target/x86_64-linux-gnu/b4dbdb186bc3ef30/obj/main.o"
63+
"@HOME@/.mcpp/cache/build-database/126ff31568829a01/target/x86_64-linux-gnu/77ba4e6c37abd416/obj/main.o"
6464
],
6565
"ide": {
6666
"role": "non-module"
6767
},
6868
"local-arguments": [],
69-
"object": "@HOME@/.mcpp/cache/build-database/784dcf29dac2b1c4/target/x86_64-linux-gnu/b4dbdb186bc3ef30/obj/main.o",
69+
"object": "@HOME@/.mcpp/cache/build-database/126ff31568829a01/target/x86_64-linux-gnu/77ba4e6c37abd416/obj/main.o",
7070
"private": false,
7171
"provides": {},
7272
"requires": [
7373
"std"
7474
],
7575
"source": "@ROOT@/src/main.cpp",
76-
"work-directory": "@HOME@/.mcpp/cache/build-database/784dcf29dac2b1c4/target/x86_64-linux-gnu/b4dbdb186bc3ef30"
76+
"work-directory": "@HOME@/.mcpp/cache/build-database/126ff31568829a01/target/x86_64-linux-gnu/77ba4e6c37abd416"
7777
}
7878
],
7979
"visible-sets": [
@@ -114,20 +114,20 @@
114114
"-c",
115115
"@ROOT@/tests/test_smoke.cpp",
116116
"-o",
117-
"@HOME@/.mcpp/cache/build-database/784dcf29dac2b1c4/target/x86_64-linux-gnu/b4dbdb186bc3ef30/obj/test_smoke.o"
117+
"@HOME@/.mcpp/cache/build-database/126ff31568829a01/target/x86_64-linux-gnu/77ba4e6c37abd416/obj/test_smoke.o"
118118
],
119119
"ide": {
120120
"role": "non-module"
121121
},
122122
"local-arguments": [],
123-
"object": "@HOME@/.mcpp/cache/build-database/784dcf29dac2b1c4/target/x86_64-linux-gnu/b4dbdb186bc3ef30/obj/test_smoke.o",
123+
"object": "@HOME@/.mcpp/cache/build-database/126ff31568829a01/target/x86_64-linux-gnu/77ba4e6c37abd416/obj/test_smoke.o",
124124
"private": false,
125125
"provides": {},
126126
"requires": [
127127
"std"
128128
],
129129
"source": "@ROOT@/tests/test_smoke.cpp",
130-
"work-directory": "@HOME@/.mcpp/cache/build-database/784dcf29dac2b1c4/target/x86_64-linux-gnu/b4dbdb186bc3ef30"
130+
"work-directory": "@HOME@/.mcpp/cache/build-database/126ff31568829a01/target/x86_64-linux-gnu/77ba4e6c37abd416"
131131
}
132132
],
133133
"visible-sets": [
@@ -186,7 +186,7 @@
186186
],
187187
"version": 1
188188
},
189-
"inputs-fingerprint": "fnv1a:3c9c1199d9bc1143",
189+
"inputs-fingerprint": "fnv1a:dacb6fd7fa58be28",
190190
"spec": {
191191
"name": "s1",
192192
"version": "0.3.0"
@@ -217,7 +217,7 @@
217217
"max": 1,
218218
"min": 1
219219
},
220-
"version": "2026.10.26.2"
220+
"version": "2026.10.27.1"
221221
},
222222
"schemaVersion": 1
223223
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
{"configuration":{"fingerprint":"b4dbdb186bc3ef30","outputDir":"@ROOT@/target/x86_64-linux-gnu/b4dbdb186bc3ef30","profile":"dev","triple":"x86_64-linux-gnu"},"event":"plan","kind":"mcpp.event","schemaVersion":1}
1+
{"configuration":{"fingerprint":"77ba4e6c37abd416","hostPlatform":null,"outputDir":"@ROOT@/target/x86_64-linux-gnu/77ba4e6c37abd416","platform":null,"profile":"dev","triple":"x86_64-linux-gnu"},"event":"plan","kind":"mcpp.event","schemaVersion":1}
22
{"event":"progress","finished":1,"kind":"mcpp.event","schemaVersion":1,"total":2}
33
{"event":"progress","finished":2,"kind":"mcpp.event","schemaVersion":1,"total":2}
44
{"event":"progress","finished":1,"kind":"mcpp.event","schemaVersion":1,"total":2}
55
{"diagnostic":{"message":"'undeclared_name' was not declared in this scope","path":"@ROOT@/src/main.cpp","range":{"end":{"column":21,"line":1},"start":{"column":21,"line":1}},"severity":"error"},"event":"diagnostic","kind":"mcpp.event","schemaVersion":1}
6-
{"data":{"artifacts":[],"client":"mcpp-ide-fixtures","command":"mcpp build --message-format json","compileDatabase":"@ROOT@/target/x86_64-linux-gnu/b4dbdb186bc3ef30/compile_commands.json","configuration":{"fingerprint":"b4dbdb186bc3ef30","outputDir":"@ROOT@/target/x86_64-linux-gnu/b4dbdb186bc3ef30","profile":"dev","triple":"x86_64-linux-gnu"},"diagnostics":[{"message":"'undeclared_name' was not declared in this scope","path":"@ROOT@/src/main.cpp","range":{"end":{"column":21,"line":1},"start":{"column":21,"line":1}},"severity":"error"}],"finishedAt":1793118345609,"pid":1768262,"startedAt":1793118345588,"status":"failed"},"diagnostics":[{"code":"MCPP_BUILD_FAILED","message":"build failed in app v0.1.0 (.)","severity":"error","source":"mcpp"}],"effects":["read-project","write-project"],"kind":"mcpp.build","kindVersion":1,"mcpp":{"protocol":{"max":1,"min":1},"version":"2026.10.26.2"},"schemaVersion":1}
6+
{"data":{"artifacts":[],"client":"mcpp-ide-fixtures","command":"mcpp build --message-format json","compileDatabase":"@ROOT@/target/x86_64-linux-gnu/77ba4e6c37abd416/compile_commands.json","configuration":{"fingerprint":"77ba4e6c37abd416","hostPlatform":null,"outputDir":"@ROOT@/target/x86_64-linux-gnu/77ba4e6c37abd416","platform":null,"profile":"dev","triple":"x86_64-linux-gnu"},"diagnostics":[{"message":"'undeclared_name' was not declared in this scope","path":"@ROOT@/src/main.cpp","range":{"end":{"column":21,"line":1},"start":{"column":21,"line":1}},"severity":"error"}],"finishedAt":1793148661270,"pid":1209305,"startedAt":1793148661248,"status":"failed"},"diagnostics":[{"code":"MCPP_BUILD_FAILED","message":"build failed in app v0.1.0 (.)","severity":"error","source":"mcpp"}],"effects":["read-project","write-project"],"kind":"mcpp.build","kindVersion":1,"mcpp":{"protocol":{"max":1,"min":1},"version":"2026.10.27.1"},"schemaVersion":1}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"diagnostics":[{"code":"MCPP_BUILD_FAILED","message":"@ROOT@/mcpp.toml:1:9: error: expected ']'","path":"@ROOT@/mcpp.toml","range":{"end":{"column":9,"line":1},"start":{"column":9,"line":1}},"severity":"error","source":"mcpp"}],"effects":["read-project","write-project"],"kind":"mcpp.build","kindVersion":1,"mcpp":{"protocol":{"max":1,"min":1},"version":"2026.10.26.2"},"schemaVersion":1}
1+
{"diagnostics":[{"code":"MCPP_BUILD_FAILED","message":"@ROOT@/mcpp.toml:1:9: error: expected ']'","path":"@ROOT@/mcpp.toml","range":{"end":{"column":9,"line":1},"start":{"column":9,"line":1}},"severity":"error","source":"mcpp"}],"effects":["read-project","write-project"],"kind":"mcpp.build","kindVersion":1,"mcpp":{"protocol":{"max":1,"min":1},"version":"2026.10.27.1"},"schemaVersion":1}

‎protocol/fixtures/build-ok.ndjson‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
{"configuration":{"fingerprint":"b4dbdb186bc3ef30","outputDir":"@ROOT@/target/x86_64-linux-gnu/b4dbdb186bc3ef30","profile":"dev","triple":"x86_64-linux-gnu"},"event":"plan","kind":"mcpp.event","schemaVersion":1}
1+
{"configuration":{"fingerprint":"77ba4e6c37abd416","hostPlatform":null,"outputDir":"@ROOT@/target/x86_64-linux-gnu/77ba4e6c37abd416","platform":null,"profile":"dev","triple":"x86_64-linux-gnu"},"event":"plan","kind":"mcpp.event","schemaVersion":1}
22
{"event":"progress","finished":1,"kind":"mcpp.event","schemaVersion":1,"total":2}
33
{"event":"progress","finished":2,"kind":"mcpp.event","schemaVersion":1,"total":2}
44
{"event":"progress","finished":1,"kind":"mcpp.event","schemaVersion":1,"total":4}
55
{"event":"progress","finished":2,"kind":"mcpp.event","schemaVersion":1,"total":4}
66
{"event":"progress","finished":3,"kind":"mcpp.event","schemaVersion":1,"total":4}
77
{"event":"progress","finished":4,"kind":"mcpp.event","schemaVersion":1,"total":4}
8-
{"artifact":{"kind":"bin","launch":{"argv":["@ROOT@/target/x86_64-linux-gnu/b4dbdb186bc3ef30/bin/app"],"cwd":"@ROOT@","env":{"GBM_BACKENDS_PATH":"@HOME@/.mcpp/registry/subos/default/usr/lib/gbm:@HOME@/.xlings/subos/speak-agent-private/usr/lib/gbm","LIBGL_DRIVERS_PATH":"@HOME@/.mcpp/registry/subos/default/usr/lib/dri:@HOME@/.xlings/subos/speak-agent-private/usr/lib/dri","XDG_DATA_DIRS":"@HOME@/.mcpp/registry/subos/default/share:@HOME@/.xlings/subos/speak-agent-private/share:/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop","__EGL_VENDOR_LIBRARY_DIRS":"@HOME@/.mcpp/registry/subos/default/share/glvnd/egl_vendor.d:@HOME@/.xlings/subos/speak-agent-private/share/glvnd/egl_vendor.d"},"via":null},"name":"app","path":"@ROOT@/target/x86_64-linux-gnu/b4dbdb186bc3ef30/bin/app"},"event":"artifact","kind":"mcpp.event","schemaVersion":1}
9-
{"data":{"artifacts":[{"kind":"bin","launch":{"argv":["@ROOT@/target/x86_64-linux-gnu/b4dbdb186bc3ef30/bin/app"],"cwd":"@ROOT@","env":{"GBM_BACKENDS_PATH":"@HOME@/.mcpp/registry/subos/default/usr/lib/gbm:@HOME@/.xlings/subos/speak-agent-private/usr/lib/gbm","LIBGL_DRIVERS_PATH":"@HOME@/.mcpp/registry/subos/default/usr/lib/dri:@HOME@/.xlings/subos/speak-agent-private/usr/lib/dri","XDG_DATA_DIRS":"@HOME@/.mcpp/registry/subos/default/share:@HOME@/.xlings/subos/speak-agent-private/share:/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop","__EGL_VENDOR_LIBRARY_DIRS":"@HOME@/.mcpp/registry/subos/default/share/glvnd/egl_vendor.d:@HOME@/.xlings/subos/speak-agent-private/share/glvnd/egl_vendor.d"},"via":null},"name":"app","path":"@ROOT@/target/x86_64-linux-gnu/b4dbdb186bc3ef30/bin/app"}],"client":"mcpp-ide-fixtures","command":"mcpp build --message-format json","compileDatabase":"@ROOT@/target/x86_64-linux-gnu/b4dbdb186bc3ef30/compile_commands.json","configuration":{"fingerprint":"b4dbdb186bc3ef30","outputDir":"@ROOT@/target/x86_64-linux-gnu/b4dbdb186bc3ef30","profile":"dev","triple":"x86_64-linux-gnu"},"diagnostics":[],"finishedAt":1793118343698,"pid":1767942,"startedAt":1793118343022,"status":"ok"},"diagnostics":[],"effects":["read-project","write-project"],"kind":"mcpp.build","kindVersion":1,"mcpp":{"protocol":{"max":1,"min":1},"version":"2026.10.26.2"},"schemaVersion":1}
8+
{"artifact":{"kind":"bin","launch":{"argv":["@ROOT@/target/x86_64-linux-gnu/77ba4e6c37abd416/bin/app"],"cwd":"@ROOT@","env":{"GBM_BACKENDS_PATH":"@HOME@/.mcpp/registry/subos/default/usr/lib/gbm:@HOME@/.xlings/subos/speak-agent-private/usr/lib/gbm","LIBGL_DRIVERS_PATH":"@HOME@/.mcpp/registry/subos/default/usr/lib/dri:@HOME@/.xlings/subos/speak-agent-private/usr/lib/dri","XDG_DATA_DIRS":"@HOME@/.mcpp/registry/subos/default/share:@HOME@/.xlings/subos/speak-agent-private/share:/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop","__EGL_VENDOR_LIBRARY_DIRS":"@HOME@/.mcpp/registry/subos/default/share/glvnd/egl_vendor.d:@HOME@/.xlings/subos/speak-agent-private/share/glvnd/egl_vendor.d"},"via":null},"name":"app","path":"@ROOT@/target/x86_64-linux-gnu/77ba4e6c37abd416/bin/app"},"event":"artifact","kind":"mcpp.event","schemaVersion":1}
9+
{"data":{"artifacts":[{"kind":"bin","launch":{"argv":["@ROOT@/target/x86_64-linux-gnu/77ba4e6c37abd416/bin/app"],"cwd":"@ROOT@","env":{"GBM_BACKENDS_PATH":"@HOME@/.mcpp/registry/subos/default/usr/lib/gbm:@HOME@/.xlings/subos/speak-agent-private/usr/lib/gbm","LIBGL_DRIVERS_PATH":"@HOME@/.mcpp/registry/subos/default/usr/lib/dri:@HOME@/.xlings/subos/speak-agent-private/usr/lib/dri","XDG_DATA_DIRS":"@HOME@/.mcpp/registry/subos/default/share:@HOME@/.xlings/subos/speak-agent-private/share:/usr/share/ubuntu:/usr/share/gnome:/usr/local/share/:/usr/share/:/var/lib/snapd/desktop","__EGL_VENDOR_LIBRARY_DIRS":"@HOME@/.mcpp/registry/subos/default/share/glvnd/egl_vendor.d:@HOME@/.xlings/subos/speak-agent-private/share/glvnd/egl_vendor.d"},"via":null},"name":"app","path":"@ROOT@/target/x86_64-linux-gnu/77ba4e6c37abd416/bin/app"}],"client":"mcpp-ide-fixtures","command":"mcpp build --message-format json","compileDatabase":"@ROOT@/target/x86_64-linux-gnu/77ba4e6c37abd416/compile_commands.json","configuration":{"fingerprint":"77ba4e6c37abd416","hostPlatform":null,"outputDir":"@ROOT@/target/x86_64-linux-gnu/77ba4e6c37abd416","platform":null,"profile":"dev","triple":"x86_64-linux-gnu"},"diagnostics":[],"finishedAt":1793148650353,"pid":1203929,"startedAt":1793148649554,"status":"ok"},"diagnostics":[],"effects":["read-project","write-project"],"kind":"mcpp.build","kindVersion":1,"mcpp":{"protocol":{"max":1,"min":1},"version":"2026.10.27.1"},"schemaVersion":1}

0 commit comments

Comments
 (0)