Skip to content

fix(build): run offline bake with portable zstd and Clang 18 - #1954

Merged
hckrman101 merged 2 commits into
NotRexed:mainfrom
Arkex-ai:fix/bake-portability
Nov 11, 2026
Merged

hckrman101 merged 2 commits into
NotRexed:mainfrom
Arkex-ai:fix/bake-portability

Conversation

@Arkex-ai

@Arkex-ai Arkex-ai commented Nov 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Offline shader bake tools could fail on a clean Windows setup when they could not find a system Zstd library. They now use the project's existing Python dependency. The compiler check also accepts Clang 18 when it supports the constexpr assertion code the translator uses.

Closes #1931.

Technical changes

Validation

  • At b5890847 on d47206ed, all 5 portability checks passed on Windows LLVM and Ubuntu Clang 18. The checks cover real dictionary frames, corrupt and truncated input, native-reader fallback and the compiler probe.
  • Hosted source checks passed with 330 passed / 0 failed / 24 skipped on Windows and 344 / 0 / 10 on Ubuntu. The portability fixture ran on both. The scope is CPU-side shader baking.
Current-head check Result
Linux AppImage Passed
Windows build Passed
Source suite Passed

Use the pinned zstandard dependency for dictionary fixtures and decoding while retaining standalone fallbacks. Bound allocation for unknown-size frames and validate complete frames. Probe the actual constexpr assertion failure path so Clang 18 is not rejected for an unrelated unconditional-static function.

Refs NotRexed#1931

Assisted-by: GPT-6 (Codex)
Keep the Python decoder as strict as the native reader when a valid compressed frame is followed by corrupt bytes. Cover both declared-size and unknown-size frames.

Assisted-by: GPT-6 (Codex)
@Arkex-ai
Arkex-ai force-pushed the fix/bake-portability branch from e3f9829 to b589084 Compare November 11, 2026 01:19
@hckrman101
hckrman101 merged commit 51e1d98 into NotRexed:main Nov 11, 2026
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

build: make offline bake dependencies and compiler discovery portable

1 participant