mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-10-20 14:39:18 +02:00
[*] use -fno-strict-aliasing to fix any would be bugs for LTO
Signed-off-by: lizzie <lizzie@eden-emu.dev>
This commit is contained in:
parent
faaf1bac64
commit
12898faa1b
1 changed files with 4 additions and 0 deletions
|
|
@ -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>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue