Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3320)

Unified Diff: build/config/compiler/BUILD.gn

Issue 2214743002: Win/GN: Make no_exception config explicit. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Undo change to config/win Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: build/config/compiler/BUILD.gn
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn
index 79723f6cc76c041697955f5c7de91e2935e78aa5..eb0c7bf3fdb7bb71b85dcbbf4e9357a5101ad813 100644
--- a/build/config/compiler/BUILD.gn
+++ b/build/config/compiler/BUILD.gn
@@ -1144,6 +1144,20 @@ config("no_rtti") {
}
}
+# exceptions -------------------------------------------------------------------
+#
+# Allows turning exceptions on or off.
brettw 2016/08/31 17:01:20 Can this comment be a little more precise? This wi
+
+config("no_exceptions") {
+ if (is_posix) {
+ cflags_cc = [ "-fno-exceptions" ]
+ cflags_objcc = cflags_cc
+ }
+ if (is_win) {
+ defines = [ "_HAS_EXCEPTIONS=0" ]
+ }
+}
+
# Warnings ---------------------------------------------------------------------
# This will generate warnings when using Clang if code generates exit-time

Powered by Google App Engine
This is Rietveld 408576698