fix: block shadows in inventory on Clang-cl builds (Linux)

Replaced the aggressive inline expansion used by clang-cl (/Ob2) with a less aggressive setting (/Ob1)

I couldn't figure out where that happened after looking for it for quite long. /Ob2 doesn't seem really useful in such a big project (and it could even be a downgrade compared to /Ob1 on low L1 cache CPUs). So i explicitly set it to /Ob1.
This commit is contained in:
Anaël
2026-10-04 20:55:20 +02:00
parent d8d65bcd49
commit 919d582a18
+1 -1
View File
@@ -36,7 +36,7 @@ function(configure_compiler_target target)
$<$<COMPILE_LANGUAGE:CXX>:/GR>
$<$<AND:$<CONFIG:Debug>,$<COMPILE_LANGUAGE:C,CXX>>:/Z7>
$<$<AND:$<CONFIG:Debug>,$<COMPILE_LANGUAGE:C,CXX>>:/Od>
$<$<AND:$<CONFIG:Release>,$<COMPILE_LANGUAGE:C,CXX>>:/O2 /Oi /GT /GF>
$<$<AND:$<CONFIG:Release>,$<COMPILE_LANGUAGE:C,CXX>>:/O2 /Ob1 /Oi /GT /GF>
)
target_link_options(${target} PRIVATE
$<$<CONFIG:Debug>:/DEBUG:FULL /INCREMENTAL:NO>