Disable identical code folding to prevent mods from conflicting with themselves due to merged functions

This commit is contained in:
Mr-Wiseguy 2024-10-07 01:35:56 -04:00
parent 7bcb984347
commit b9ea76847f
1 changed files with 5 additions and 0 deletions

View File

@ -196,6 +196,11 @@ else()
)
endif()
if (MSVC)
# Disable identical code folding, since this breaks mod function patching as multiple functions can get merged into one.
target_link_options(Zelda64Recompiled PRIVATE /OPT:NOICF)
endif()
if (WIN32)
include(FetchContent)