MSVC: /EHsc to silence a warning and maybe even improve performance

This commit is contained in:
Kai Ninomiya 2017-08-30 16:48:49 -07:00 committed by Kai Ninomiya
parent 169809c458
commit 8e587e8b42
1 changed files with 1 additions and 0 deletions

View File

@ -91,6 +91,7 @@ endif()
if (MSVC) if (MSVC)
list(APPEND NXT_FLAGS "/std:c++14") list(APPEND NXT_FLAGS "/std:c++14")
list(APPEND NXT_FLAGS "/EHsc")
list(APPEND NXT_INTERNAL_FLAGS "/W4") list(APPEND NXT_INTERNAL_FLAGS "/W4")
# Allow declarations hiding members as it is used all over NXT # Allow declarations hiding members as it is used all over NXT
list(APPEND NXT_INTERNAL_FLAGS "/wd4458") list(APPEND NXT_INTERNAL_FLAGS "/wd4458")