Repository navigation
vk_pipeline_check: parse floating-point CLI values without from_chars (BUILD-822) - #2927
Conversation
|
Code read of AI-assisted review (Claude Code). |
|
Tested |
|
Tested
No game files. AI-assisted (Claude Code). |
c575a03 to
3ca9290
Compare
|
Additional evidence from current main f847748 on Apple M2 (macOS 26.4, AppleClang 17): without this fix, I cherry-picked this commit onto current main in a throwaway worktree (no push to any shared branch): AI-assisted. |
|
Windows + GPU check: RTX 5080 + RTX 3070 Ti (NVIDIA 621.01) and AMD Radeon 610M iGPU (Ryzen 9 9950X3D, driver 32.0.13018.6), Windows 11, MSVC RelWithDebInfo/Ninja. Tested head 3ca9290.
Synthetic fixtures only, no game files. AI-assisted (opencode); runs on my machine. |
BUILD-822 (finding: #2716 (comment)), claimed in #2891 (comment).
What and why
upstream/mainec8ec4c does not fully build on macOS with Xcode CLT 17 (AppleClang 17.0.0.17000013):runtime/test/vk_pipeline_check.cpp:567callsstd::from_charswith a floating-point destination through its templated CLInumber()lambda. Apple's libc++ provides no floating-pointfrom_charsoverload, so the full build exits 2 at that target. Merged #1596 fixed the same class of call inshader_library.hbut not this file.Change
One commit (c575a03): for floating-point CLI destinations only, parse the already-delimited token with
std::strtod, requiring full-token consumption and noERANGE, mirroring #1596; integral options keep the existingstd::from_charspath byte-for-byte in behaviour. Added the needed unconditional<cerrno>and<type_traits>includes. The CLI regression test adds--slow 1.2.3so a partial numeric prefix cannot silently pass again.Verified on Apple M2 (Mac14,3), macOS 26.4, AppleClang 17 / CLT SDK
cmake -S runtime -B runtime/build/linux -DVulkan_INCLUDE_DIR=/opt/homebrew/includeand fullcmake --build runtime/build/linux --parallel: exit 0, every target built (same tree without the fix exits 2 atvk_pipeline_check.cpp).ctest --test-dir runtime/build/linux -R '^vk_pipeline_check_cli$' --output-on-failure: 1/1 passed in 0.37 s, including the new case.xdxr_build_check(open issue xdxr_build: radix scan writes offsets apart from the counts, correct on MoltenVK 1.4.2 #2423, MoltenVK radix-scan offsets), unrelated to this change.python -m unittest discover -s tests/semantic: 4137 tests, OK.git diff --check: clean.No game files, no keys; synthetic CLI inputs and aggregate counts only.
AI-assisted.