aboutsummaryrefslogtreecommitdiffhomepage
path: root/BUILD.gn
diff options
context:
space:
mode:
authorGravatar Mike Klein <mtklein@chromium.org>2017-08-15 21:16:18 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2017-08-16 01:49:07 +0000
commitc667dff58dc4b16faf30c34e98a118c6a1c1f987 (patch)
treeb1b8bd77c302c131d7205b11bf3ef8796017cf20 /BUILD.gn
parentecf78acaa0d5319adf575e6f624993b16d83824c (diff)
Turn on exceptions in test tools.
This allows us to test things that, e.g., throw std::bad_alloc. Change-Id: I6409159b89f1d93d403b1a1f40539cf2531a8b68 Reviewed-on: https://skia-review.googlesource.com/34982 Reviewed-by: Herb Derby <herb@google.com> Commit-Queue: Mike Klein <mtklein@chromium.org>
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn7
1 files changed, 7 insertions, 0 deletions
diff --git a/BUILD.gn b/BUILD.gn
index afa38a1520..d7a179dc21 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -883,6 +883,9 @@ if (skia_enable_tools) {
":skia_private",
]
+ configs -= [ "//gn:no_exceptions" ]
+ configs += [ "//gn:yes_exceptions" ]
+
if (!defined(deps)) {
deps = []
}
@@ -896,6 +899,8 @@ if (skia_enable_tools) {
shared_library("lib" + target_name) {
forward_variables_from(invoker, "*", [ "is_shared_library" ])
configs += [ ":skia_private" ]
+ configs -= [ "//gn:no_exceptions" ]
+ configs += [ "//gn:yes_exceptions" ]
testonly = true
}
} else {
@@ -903,6 +908,8 @@ if (skia_enable_tools) {
executable(_executable) {
forward_variables_from(invoker, "*", [ "is_shared_library" ])
configs += [ ":skia_private" ]
+ configs -= [ "//gn:no_exceptions" ]
+ configs += [ "//gn:yes_exceptions" ]
testonly = true
}
}