openvibers/source.openvibe.games Commits

Define COMPILER_MSVC/COMPILER_MSVC32 for the tier3 globals compile

CO Copilot committed 2 Jul 2026 · f98351b9af · 1 file, +1 −1

tier0/platform.h #errors without COMPILER_MSVC or COMPILER_GCC
defined (VALIGNOF branch). Real SDK builds get this from VPC's
source_win32_base.vpc PreprocessorDefinitions; a bare cl.exe
invocation doesn't inherit it, so define it explicitly.

Changes

ddiff --git a/tools/build-sdk-windows.ps1 b/tools/build-sdk-windows.ps1
iindex 2af852d..690f5e4 100644
---- a/tools/build-sdk-windows.ps1
++++ b/tools/build-sdk-windows.ps1
@@@ -1025,7 +1025,7 @@ IVTex *g_pVTex = 0;
$publicInclude = Join-Path $Src "public"
Say "creating Win32 tier3.lib from real tier3.h globals ($tier3Dest)"
-- & $clCmd.Source /nologo /c /TP "/I$publicInclude" $tier3Src /Fo$tier3Obj 2>&1 | Tee-Object -FilePath $log -Append | Out-Host
++ & $clCmd.Source /nologo /c /TP /DCOMPILER_MSVC /DCOMPILER_MSVC32 /DWIN32 /D_WIN32 "/I$publicInclude" $tier3Src /Fo$tier3Obj 2>&1 | Tee-Object -FilePath $log -Append | Out-Host
if ($LASTEXITCODE -ne 0) { throw "cl.exe failed while compiling tier3.lib globals" }
& $libCmd.Source /nologo /machine:x86 "/out:$tier3Dest" $tier3Obj 2>&1 | Tee-Object -FilePath $log -Append | Out-Host