Compare commits

...

1 Commits

Author SHA1 Message Date
lizzie 12898faa1b [*] use -fno-strict-aliasing to fix any would be bugs for LTO
Signed-off-by: lizzie <lizzie@eden-emu.dev>
2026-08-27 05:32:20 +00:00
+4
View File
@@ -147,6 +147,10 @@ if (MSVC AND NOT CXX_CLANG)
set(CMAKE_EXE_LINKER_FLAGS_DEBUG "/DEBUG /MANIFEST:NO" CACHE STRING "" FORCE)
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "/DEBUG /MANIFEST:NO /INCREMENTAL:NO /OPT:REF,ICF" CACHE STRING "" FORCE)
else()
# according to sam, should fix any issues we have with LTO builds
# having bugs that non-LTO builds don't have
add_compile_options(
$<$<COMPILE_LANGUAGE:C,CXX>:-fno-strict-aliasing>)
if (NOT MSVC)
add_compile_options(
$<$<COMPILE_LANGUAGE:C,CXX>:-fwrapv>