wire non graphical raddbg build target

This commit is contained in:
Nikita Smith
2026-06-02 12:09:53 -07:00
committed by Ryan Fleury
parent b6bc8d89b0
commit b60f5ec7cb
5 changed files with 10 additions and 6 deletions
+1
View File
@@ -140,6 +140,7 @@ popd
:: --- Build Everything (@build_targets) -------------------------------------- :: --- Build Everything (@build_targets) --------------------------------------
pushd build pushd build
if "%raddbg%"=="1" set didbuild=1 && %compile% ..\src\raddbg\raddbg_main.c %compile_link% %link_icon% %out%raddbg.exe || exit /b 1 if "%raddbg%"=="1" set didbuild=1 && %compile% ..\src\raddbg\raddbg_main.c %compile_link% %link_icon% %out%raddbg.exe || exit /b 1
if "%raddbg_non_graphical%"=="1" set didbuild=1 && %compile% -DWM_STUB=1 -DWM_STUB_DEFAULT_REFRESH_RATE=60.f -DR_BACKEND=R_BACKEND_STUB ..\src\raddbg\raddbg_main.c %compile_link% %link_icon% %out%raddbg_non_graphical.exe || exit /b 1
if "%radlink%"=="1" set didbuild=1 && %compile% ..\src\linker\lnk.c %compile_link% %linker% /NOIMPLIB %linker% /NATVIS:"%~dp0\src\linker\linker.natvis" %out%radlink.exe || exit /b 1 if "%radlink%"=="1" set didbuild=1 && %compile% ..\src\linker\lnk.c %compile_link% %linker% /NOIMPLIB %linker% /NATVIS:"%~dp0\src\linker\linker.natvis" %out%radlink.exe || exit /b 1
if "%radbin%"=="1" set didbuild=1 && %compile% ..\src\radbin\radbin_main.c %compile_link% %out%radbin.exe || exit /b 1 if "%radbin%"=="1" set didbuild=1 && %compile% ..\src\radbin\radbin_main.c %compile_link% %out%radbin.exe || exit /b 1
if "%raddump%"=="1" set didbuild=1 && %compile% ..\src\raddump\raddump_main.c %compile_link% %out%raddump.exe || exit /b 1 if "%raddump%"=="1" set didbuild=1 && %compile% ..\src\raddump\raddump_main.c %compile_link% %out%raddump.exe || exit /b 1
+3 -3
View File
@@ -26,8 +26,8 @@ for %%m in (%MODE_VALUES%) do for %%c in (%CC_VALUES%) do (
set PATH=%clang_path%..\lib\clang\%clang_version%\lib\windows;!PATH! set PATH=%clang_path%..\lib\clang\%clang_version%\lib\windows;!PATH!
) )
rem raddbg dies under asan on statup rem TODO: unblock asan
call build.bat meta %%c %%m asan raddbg || exit /b 1 call build.bat meta %%c %%m raddbg_non_graphical || exit /b 1
rem clang does not compile with asan in release mode because it runs out of memory rem clang does not compile with asan in release mode because it runs out of memory
if "%%c" equ "clang" ( if "%%c" equ "clang" (
@@ -37,7 +37,7 @@ for %%m in (%MODE_VALUES%) do for %%c in (%CC_VALUES%) do (
) )
pushd build pushd build
torture -s:Dbg* %* || exit /b 1 torture || exit /b 1
popd popd
endlocal endlocal
+1 -1
View File
@@ -41,7 +41,7 @@ r_tex2d_release(R_Handle texture)
r_hook R_ResourceKind r_hook R_ResourceKind
r_kind_from_tex2d(R_Handle texture) r_kind_from_tex2d(R_Handle texture)
{ {
return R_ResourceStatic; return R_ResourceKind_Static;
} }
r_hook Vec2S32 r_hook Vec2S32
+2 -2
View File
@@ -278,9 +278,9 @@ t_raddbg_path(void)
ArenaParams params = { .reserve_size = sizeof(buffer), .commit_size = sizeof(buffer), .optional_backing_buffer = buffer }; ArenaParams params = { .reserve_size = sizeof(buffer), .commit_size = sizeof(buffer), .optional_backing_buffer = buffer };
Arena *arena = arena_alloc_(&params); Arena *arena = arena_alloc_(&params);
#if OS_WINDOWS #if OS_WINDOWS
path = os_full_path_from_path(arena, str8_lit("raddbg.exe")); path = os_full_path_from_path(arena, str8_lit("raddbg_non_graphical.exe"));
#else #else
path = os_full_path_from_path(arena, str8_lit("raddbg")); path = os_full_path_from_path(arena, str8_lit("raddbg_non_graphical"));
#endif #endif
AssertAlways(path.size); AssertAlways(path.size);
} }
+3
View File
@@ -13,6 +13,9 @@ internal WM_SystemInfo *
wm_get_system_info(void) wm_get_system_info(void)
{ {
local_persist WM_SystemInfo g = {0}; local_persist WM_SystemInfo g = {0};
#if defined(WM_STUB_DEFAULT_REFRESH_RATE)
g.default_refresh_rate = WM_STUB_DEFAULT_REFRESH_RATE;
#endif
return &g; return &g;
} }