Suppress /wd4577 'noexcept with no exception handling mode' warning
This commit is contained in:
parent
3db3f1f83a
commit
86ad3363e1
@ -177,6 +177,8 @@ if(WIN32)
|
|||||||
string(REPLACE "/EHsc" "/EHs-c-" ${flag} "${${flag}}")
|
string(REPLACE "/EHsc" "/EHs-c-" ${flag} "${${flag}}")
|
||||||
endforeach()
|
endforeach()
|
||||||
add_definitions(/D_HAS_EXCEPTIONS=0)
|
add_definitions(/D_HAS_EXCEPTIONS=0)
|
||||||
|
# Suppress 'noexcept used with no exception handling mode specified' warning
|
||||||
|
add_compile_options(/wd4577)
|
||||||
|
|
||||||
# Try to avoid flaky failures due to failed generation of generate.stamp files.
|
# Try to avoid flaky failures due to failed generation of generate.stamp files.
|
||||||
set(CMAKE_SUPPRESS_REGENERATION ON)
|
set(CMAKE_SUPPRESS_REGENERATION ON)
|
||||||
|
@ -186,6 +186,7 @@ def get_win_copts(is_external=False):
|
|||||||
# Bazel to fix this.
|
# Bazel to fix this.
|
||||||
# "/D_HAS_EXCEPTIONS=0",
|
# "/D_HAS_EXCEPTIONS=0",
|
||||||
# "/EHs-c-",
|
# "/EHs-c-",
|
||||||
|
"/wd4577",
|
||||||
"/DNOGDI",
|
"/DNOGDI",
|
||||||
]
|
]
|
||||||
if is_external:
|
if is_external:
|
||||||
|
Loading…
Reference in New Issue
Block a user