mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-14 17:28:07 +00:00
wire non graphical raddbg build target
This commit is contained in:
committed by
Ryan Fleury
parent
b6bc8d89b0
commit
b60f5ec7cb
@@ -140,6 +140,7 @@ popd
|
||||
:: --- Build Everything (@build_targets) --------------------------------------
|
||||
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_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 "%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
|
||||
|
||||
+3
-3
@@ -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!
|
||||
)
|
||||
|
||||
rem raddbg dies under asan on statup
|
||||
call build.bat meta %%c %%m asan raddbg || exit /b 1
|
||||
rem TODO: unblock asan
|
||||
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
|
||||
if "%%c" equ "clang" (
|
||||
@@ -37,7 +37,7 @@ for %%m in (%MODE_VALUES%) do for %%c in (%CC_VALUES%) do (
|
||||
)
|
||||
|
||||
pushd build
|
||||
torture -s:Dbg* %* || exit /b 1
|
||||
torture || exit /b 1
|
||||
popd
|
||||
|
||||
endlocal
|
||||
|
||||
@@ -41,7 +41,7 @@ r_tex2d_release(R_Handle texture)
|
||||
r_hook R_ResourceKind
|
||||
r_kind_from_tex2d(R_Handle texture)
|
||||
{
|
||||
return R_ResourceStatic;
|
||||
return R_ResourceKind_Static;
|
||||
}
|
||||
|
||||
r_hook Vec2S32
|
||||
|
||||
@@ -278,9 +278,9 @@ t_raddbg_path(void)
|
||||
ArenaParams params = { .reserve_size = sizeof(buffer), .commit_size = sizeof(buffer), .optional_backing_buffer = buffer };
|
||||
Arena *arena = arena_alloc_(¶ms);
|
||||
#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
|
||||
path = os_full_path_from_path(arena, str8_lit("raddbg"));
|
||||
path = os_full_path_from_path(arena, str8_lit("raddbg_non_graphical"));
|
||||
#endif
|
||||
AssertAlways(path.size);
|
||||
}
|
||||
|
||||
@@ -13,6 +13,9 @@ internal WM_SystemInfo *
|
||||
wm_get_system_info(void)
|
||||
{
|
||||
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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user