Remove qt_opcua_disable_optimizations_in_current_dir logic


qt_opcua_disable_optimizations_in_current_dir() disables some optimization
flags for MSVC and other compilers. It got introduced in commit
936cc2b930186ed9803a19cd55dd2eaa732cab51 to workaround a miscompilation that
happened in MSVC 2019, causing stability issues in the CI, and mirrors similar
logic for qmake (original commit f67a085c9de53424a911c65e84229ac3ea616b0c).

Since Qt 6.8, we require MSVC 2022, where the workaround seems not to
be needed anymore. And for other compilers the disabling of optimization
options seem to have been done just out of caution.

So let's try to disable the logic again.

Fixes: QTBUG-142401
Task-number: QTBUG-85939
Change-Id: I6ccb9b95ab8733ffa96df26ada42bc62bd71aaca
Reviewed-by: Jannis Völker <jannis.voelker@basyskom.com>
commitfd3b3d1452c7118f93683f84ccf74ffe3b33e57f
parentc21b81e2a659abe80cedce45745be465bac8921e
authorKai Köhne <kai.koehne@qt.io>
committerKai Köhne <kai.koehne@qt.io>
commit timeWed, 3 Dec 2025 09:48:10 +0100