File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed
Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ elseif (CMAKE_CXX_COMPILER_ID MATCHES "GNU")
125125 add_link_options (-Wl,--gc-sections)
126126elseif (MSVC )
127127 # MSVC equivalent for dead code stripping
128- add_link_options (/OPT:REF /OPT:ICF)
128+ add_link_options (/OPT:REF /OPT:ICF /INCREMENTAL: NO )
129129endif ()
130130
131131if (ENABLE_ASAN)
Original file line number Diff line number Diff line change @@ -362,7 +362,9 @@ if(CMAKE_C_COMPILER_ID MATCHES "Clang|GNU")
362362 set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wno-int-conversion -Wno-pointer-sign -Wno-pointer-to-int-cast -Wno-incompatible-pointer-types" )
363363 set (CMAKE_C_FLAGS_RELEASE "${CMAKE_C_FLAGS} -fno-finite-math-only -ffast-math -funroll-loops -fomit-frame-pointer -O3" )
364364 set (CMAKE_C_FLAGS_DEBUG "${CMAKE_C_FLAGS} -g -O0" )
365- endif ()
365+ elif(MSVC )
366+ add_compile_options (/wd4244 /wd4311 /wd4003 /wd4047 /wd4477 /wd4068 /wd4133 /wd4311)
367+ endif ()
366368
367369# ------------------------------------------------------------------------------#
368370# SFONT~
You can’t perform that action at this time.
0 commit comments