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

This commit is contained in:
faumaray committed 2026-12-05 14:14:25 +03:00
1 parent ce041ace07
commit 0c1bf7e5b2
11 files changed
+519 -21

No files matched your search

+14
View File
@@ -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).