From 9227e884ac1d8f8e82e603493607b0effc0e2f74 Mon Sep 17 00:00:00 2001 From: Ryan Fleury Date: Mon, 2 Mar 2026 12:03:40 -0800 Subject: [PATCH] san -> asan / ubsan --- build.bat | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/build.bat b/build.bat index e274e20f..94711724 100644 --- a/build.bat +++ b/build.bat @@ -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