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

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