From 919d582a1897f91a3670dcbabb5e2d5e68bee879 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ana=C3=ABl?= <60509176+Bakoubak@users.noreply.github.com> Date: Sun, 4 Oct 2026 20:55:20 +0200 Subject: [PATCH] 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. --- CMakeLists.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index a56f9331..75f7acd0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -36,7 +36,7 @@ function(configure_compiler_target target) $<$:/GR> $<$,$>:/Z7> $<$,$>:/Od> - $<$,$>:/O2 /Oi /GT /GF> + $<$,$>:/O2 /Ob1 /Oi /GT /GF> ) target_link_options(${target} PRIVATE $<$:/DEBUG:FULL /INCREMENTAL:NO>