san -> asan / ubsan

This commit is contained in:
Ryan Fleury
2026-03-02 12:03:40 -08:00
parent 8007c158fa
commit 9227e884ac
+5 -3
View File
@@ -15,7 +15,7 @@ cd /D "%~dp0"
:: `build raddbg`
:: `build raddbg clang`
:: `build raddbg release`
:: `build raddbg san telemetry`
:: `build raddbg asan telemetry`
:: `build rdi_from_pdb`
::
:: For a full list of possible build targets and their build command lines,
@@ -23,7 +23,8 @@ cd /D "%~dp0"
::
:: Below is a list of all possible non-target command line options:
::
:: - `san`: enable address sanitizer
:: - `asan`: enable address sanitizer
:: - `ubsan`: enable undefined-behavior sanitizer
:: - `telemetry`: enable RAD telemetry profiling support
:: - `spall`: enable spall profiling support
@@ -42,7 +43,8 @@ if "%~1"=="release" if "%~2"=="" echo [default mode, assuming `raddbg` build] &&
set auto_compile_flags=
if "%telemetry%"=="1" set auto_compile_flags=%auto_compile_flags% -DPROFILE_TELEMETRY=1 && echo [telemetry profiling enabled]
if "%spall%"=="1" set auto_compile_flags=%auto_compile_flags% -DPROFILE_SPALL=1 && echo [spall profiling enabled]
if "%san%"=="1" set auto_compile_flags=%auto_compile_flags% -fsanitize=address -fsanitize=undefined && echo [san enabled]
if "%asan%"=="1" set auto_compile_flags=%auto_compile_flags% -fsanitize=address && echo [asan enabled]
if "%ubsan%"=="1" set auto_compile_flags=%auto_compile_flags% -fsanitize=undefined && echo [ubsan enabled]
if "%opengl%"=="1" set auto_compile_flags=%auto_compile_flags% -DR_BACKEND=R_BACKEND_OPENGL && echo [opengl render backend]
if "%dwarf%"=="1" if "%clang%"=="1" set auto_compile_flags=%auto_compile_flags% -gdwarf && echo [dwarf debug info]
if "%dwarf%"=="" if "%clang%"=="1" set auto_compile_flags=%auto_compile_flags% -gcodeview