diff options
Diffstat (limited to 'build/config/compiler/BUILD.gn')
-rw-r--r-- | build/config/compiler/BUILD.gn | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn index eb33be9..4520f3a 100644 --- a/build/config/compiler/BUILD.gn +++ b/build/config/compiler/BUILD.gn @@ -43,10 +43,14 @@ config("compiler") { cflags += [ "/Gy", # Enable function-level linking. "/GS", # Enable buffer security checking. - "/EHsc", # Assume C functions can't throw exceptions and don't catch - # structured exceptions (only C++ ones). "/FS", # Preserve previous PDB behavior. ] + if (is_component_build) { + cflags += [ + "/EHsc", # Assume C functions can't throw exceptions and don't catch + # structured exceptions (only C++ ones). + ] + } } else { # Common GCC compiler flags setup. # -------------------------------- |