Skip to content

Commit 2a44fa1

Browse files
Disable COMDAT folding optimization for windows
Signed-off-by: Maciej Plewka <[email protected]>
1 parent f6aafdb commit 2a44fa1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -692,6 +692,9 @@ if(MSVC)
692692
# Disable generating manifest
693693
set(LINKER_FLAGS "/MANIFEST:NO")
694694

695+
# Disable COMDAT folding optimization
696+
set(LINKER_FLAGS "${LINKER_FLAGS} /OPT:NOICF")
697+
695698
# Use legacy float rounding
696699
set(LINKER_FLAGS "${LINKER_FLAGS} legacy_stdio_float_rounding.obj")
697700

0 commit comments

Comments
 (0)