1
0
Fork 0
mirror of https://github.com/OpenMW/openmw.git synced 2026-01-05 09:13:07 +00:00

Disable multithreaded codegen for hungry TUs

This commit is contained in:
AnyOldName3 2025-12-24 01:34:56 +00:00
parent f9f29c7a57
commit c23d8f64bc

View file

@ -123,6 +123,19 @@ add_library(openmw-lib STATIC
${OPENMW_SOURCES}
)
if (MSVC)
# these TUs take a lot of memory for codegen
# in CI, they often go over the 8GB memory limit if another cl.exe is running at the same time
# this option (make sure you're not looking at the docs for the identically-named linker option) stops four codegen threads being spun off
# it hurts build time ~33% to enable this unnecessarily, though, so target it to the hungriest boys
set_source_files_properties(
options.cpp
mwlua/stats.cpp
PROPERTIES
COMPILE_OPTIONS /cgthreads1
)
endif()
if(BUILD_OPENMW)
if (ANDROID)
add_library(openmw SHARED