feat(lang): support assembly sources and shader bundles
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 9s
VoidBuildSystem CI / sanitizers-gcc16 (push) Failing after 8s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 12s
VoidBuildSystem CI / fuzz-clang (push) Failing after 5s
VoidBuildSystem CI / wine-windows-gcc16 (push) Failing after 49s
VoidBuildSystem CI / build-and-test-gcc16 (push) Failing after 9s
VoidBuildSystem CI / sanitizers-gcc16 (push) Failing after 8s
VoidBuildSystem CI / signing-openssl-gcc16 (push) Failing after 12s
VoidBuildSystem CI / fuzz-clang (push) Failing after 5s
VoidBuildSystem CI / wine-windows-gcc16 (push) Failing after 49s
This commit is contained in:
1 parent
ce041ace07
commit
0c1bf7e5b2
11 files changed
+519
-21
No files matched your search
@@ -373,6 +373,8 @@ Stage: VERIFIED — Plans 01–19 + Plan 20 Slices 1–2C + Track A + Track B (B
|
||||
|
||||
- **Wave 140 (pkg-config Discovery)**: `p.dependency("zlib").pkgconfig("zlib >= 1.2")` resolves system libraries from `.pc` files (parsed directly - no `pkg-config` executable needed), honoring `PKG_CONFIG_PATH`/`PKG_CONFIG_LIBDIR` plus conventional prefixes. Variables (`${prefix}`, `${pcfiledir}`, nested) expand, `Requires` chains merge flags, and RPM-style version comparison enforces constraints at the root and in the chain. Cflags become include dirs/defines/compile options and Libs become link options or library paths. The dependency is recorded in `vbs.lock` as `pkgconfig` and never fetched. `FullV1Tests.pkgconfig_dependency_resolves_flags_requires_and_versions` builds and runs a real app against a generated `.pc` + archive, and asserts both version-mismatch errors.
|
||||
|
||||
- **Wave 141 (ASM & Shader Languages)**: assembly sources (`.s` plain, `.S` preprocessed) compile through the C compiler driver without C/C++ standard flags, LTO or sanitizers, and are excluded from unity/module scanning. Shader bundles are first-class: `p.shader_bundle("shaders").shader("tri.vert")` lowers one action per shader to SPIR-V via `glslangValidator` (GLSL/HLSL), `slangc` (Slang, stage inferred from `[shader]`) or `dxc` (HLSL), with toolchain discovery from PATH. `FullV1Tests.asm_preprocessed_source_compiles_and_links` and `shader_bundle_compiles_sources_to_spirv` cover both; GLSL, Slang and HLSL shaders were each compiled to valid SPIR-V (`0x07230203`).
|
||||
|
||||
## Remaining future scope
|
||||
|
||||
- **Superiority plan ([22-superiority-and-gaps.md](../roadmap/22-superiority-and-gaps.md), 2026-12-05)**: revised platform strategy - **macOS deferred**, **Windows via MinGW-w64 cross-compilation + Wine execution** (`dev cpp-gcc -p pkgsCross.mingwW64.stdenv.cc`, `dev cpp-gcc -p wine64`), native MSVC deferred; plus packaging parity (ZIP/DEB/RPM), IDE ecosystem, migration tooling, test-runner parity, benchmarks, CI runners, and remote execution in prioritized order.
|
||||
|
||||
@@ -141,4 +141,5 @@ Base HEAD: `fe0d1a6`
|
||||
| Wave 138 (Full CMake File API) | `cmakeFiles-v1`, `toolchains-v1`, `cache-v2` replies | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; IDE E2E passes, full CTest 8/8) | `src/Editor/CompDb.cpp`, `tests/FullV1Tests.cpp`, docs |
|
||||
| Wave 139 (VSIX packaging) | `vbs ide plugin --vsix FILE`; shared `Package::create_stored_zip` | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; Python zipfile validates the VSIX, packaged harness passes under Node, C++ test checks CRCs, full CTest 8/8) | `src/Editor/CompDb.cpp`, `src/Package/Archive.cpp`, `src/Main.cpp`, `tests/FullV1Tests.cpp`, docs |
|
||||
| Wave 140 (pkg-config discovery) | `.pkgconfig(spec)` dependency, `.pc` parser with variables/Requires/version compare, lock entries | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; E2E builds/runs and checks version errors, full CTest 8/8) | `include/Void/Build.hpp`, `sdk/Build.cpp`, `src/Provider/PkgConfig.cpp`, `src/Graph/Graph.cpp`, `src/Package/Resolver.cpp`, `src/Main.cpp`, `tests/FullV1Tests.cpp`, docs |
|
||||
| Wave 141 (ASM + shader languages) | `.s`/`.S` assembly; `shader_bundle`/`.shader()` lowered to SPIR-V (glslang/slangc/dxc) | COMPLETE & VERIFIED (GCC 16.2, pin `0002e74`; both E2Es pass, GLSL/Slang/HLSL produce SPIR-V, full CTest 8/8) | `src/Graph/Graph.cpp`, `src/Toolchain/Driver.cpp`, `include/Void/Build.hpp`, `sdk/Build.cpp`, `tests/FullV1Tests.cpp`, docs |
|
||||
| Future (Plan 20 Slice 3 / Tracks C, E3 editor extensions) |"}] Live `conan` CLI verification; macOS/Windows/cross-compile; binary-variant signing and key distribution; daemon-side dependency materialization and editor plugins; `Void::Net`/`Void::Sqlite` alignment | PLANNED (unimplemented) | [21-expansion-roadmap.md](../roadmap/21-expansion-roadmap.md), [20-future-translation-platforms.md](../roadmap/20-future-translation-platforms.md) |
|
||||
@@ -1836,6 +1836,20 @@ VOID_INCLUDE_DIR=/tmp/opencode/vl-pin/include dev cpp -c bash fuzz/run.sh 30
|
||||
"is required, but version 1.2.3 is installed" and `child >= 0.8` fails through the chain.
|
||||
- Full CTest: **8 / 8 passed** in 311.96 s.
|
||||
|
||||
## ASM & Shader Languages (GCC 16.2, pin `0002e74`)
|
||||
|
||||
- Assembly: `.s`/`.S` sources are lowered through the C compiler driver with no language
|
||||
standard, LTO or sanitizer flags (`.S` is preprocessed by the driver).
|
||||
`FullV1Tests.asm_preprocessed_source_compiles_and_links` **passed** (2.32 s): a `.S` file
|
||||
using `#define ASM_ANSWER 42` and a verbatim `.s` file link into a running executable.
|
||||
- Shaders: `p.shader_bundle("shaders").shader(...)` emits one action per source to SPIR-V.
|
||||
`FullV1Tests.shader_bundle_compiles_sources_to_spirv` **passed** (3.99 s, run under
|
||||
`dev cpp-gcc -p glslang`): two GLSL shaders produce modules starting with `0x07230203`, and
|
||||
a stage-less `.glsl` is rejected with "cannot infer the stage".
|
||||
- GLSL (glslang), Slang (`slangc`, stage from `[shader]`) and HLSL (`dxc`) were all compiled
|
||||
manually to valid SPIR-V in this environment.
|
||||
- Full CTest: **8 / 8 passed** in 314.56 s.
|
||||
|
||||
## Limits and Unrun Checks
|
||||
|
||||
1. **HTTPS git fetch**: the host shell is proxy-restricted, but the Docker container could clone `https://git.faumaray.com/Void/VoidLibrary.git`; the pinned commit `3e254055e081a104f08df68dde39711bc7813518` was fetched directly for the verification above. A separate configure against the local `/home/faumaray/Projects/Library` checkout via `VBS_VOID_SOURCE_DIR` also succeeded (development-only override, checkout unmodified).
|
||||
|
||||
Reference in new issue
Block a user