forked from moonpower/azahar-UWP
Suppress MSVC warnings C4711 and C5045 during compilation
This commit is contained in:
parent
9b05803d6c
commit
48baec4e1b
@ -54,6 +54,13 @@ else()
|
||||
set(IS_RELEASE_BUILD ON)
|
||||
endif()
|
||||
|
||||
if (MSVC)
|
||||
add_compile_options(
|
||||
/wd4711 # Suppresses `function 'xxxxx' selected for automatic inline expansion` messages
|
||||
/wd5045 # Suppresses `Compiler will insert Spectre mitigation for memory load if /Qspectre switch specified` messages
|
||||
)
|
||||
endif()
|
||||
|
||||
# LTO takes too much memory and time using MSVC.
|
||||
if (NOT MSVC AND IS_RELEASE_BUILD)
|
||||
set(DEFAULT_ENABLE_LTO ON)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user