mirror of
https://github.com/Niko1221/Strata.git
synced 2026-12-04 07:18:50 +00:00
Owner decision 2026-11-25: the debug symbols of every release build are kept from 0.2.22 on. - engine/cmake/strata_symbols.cmake, option STRATA_KEEP_SYMBOLS (off by default; every release script turns it on): host debug information only, no flag that changes the machine code. MSVC: /Z7 and /DEBUG with /OPT:REF /OPT:ICF given again (/DEBUG alone turns the default folding off, which would change the code) and /PDBALTPATH so the exe does not name the build folder; nvcc: the host compiler's -g, never -G. clang / gcc: -g, with -Xarch_host for the HIP and SYCL device passes. Included by engine/, engine/src/inkling2 (its standalone build had no PDB at all), engine/sycl, engine/metal and terminal/tools/vision. - tools/packaging/keep_symbols.py: `elf` (objcopy --only-keep-debug, --strip-debug on the stage copy, .gnu_debuglink; fails if .text or .nv_fatbin changed), `pe` (copies the PDB after checking its GUID against the exe's CodeView record), `macho` (dsymutil, strip -S), `check` (compares .text and the CUDA fatbin of a build with and without symbols), `show` (the build id). Every command writes symbols.json (id, sha256 of the shipped binary, sha256 of the symbol file). tools/test_keep_symbols.py. - tools/packaging/symbols_build.sh (sourced by the Linux and Mac scripts), and the hooks in build_cuda_linux.sh, build_cuda_linux_aarch64.sh (+ engine/spark/build_engine.sh), build_sycl_linux.sh, build_hip_linux.sh, mac/build_engine.sh, build_cuda_windows.py and build_vision_windows.bat. A release build whose binary has no debug information stops (--require); STRATA_KEEP_SYMBOLS=0 builds without. - tools/packaging/UPDATES.md, "Releasing": the Symbols step of the checklist (store C:\r0222\symbols\<package name>\, never uploaded).