diff options
Diffstat (limited to 'gn/BUILD.gn')
-rw-r--r-- | gn/BUILD.gn | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gn/BUILD.gn b/gn/BUILD.gn index 7be1617d23..06cff4e4a7 100644 --- a/gn/BUILD.gn +++ b/gn/BUILD.gn @@ -258,11 +258,16 @@ config("default") { } config("no_exceptions") { - # Exceptions are disabled by default on Windows. (Use /EHsc to enable them.) + # Exceptions are disabled by default on Windows. (Use :yes_exceptions to enable them.) if (!is_win) { cflags_cc = [ "-fno-exceptions" ] } } +config("yes_exceptions") { + if (is_win) { + cflags_cc = [ "/EHsc" ] + } +} config("warnings") { cflags = [] |