summaryrefslogtreecommitdiff
path: root/chromium/third_party/angle/samples/BUILD.gn
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/angle/samples/BUILD.gn')
-rw-r--r--chromium/third_party/angle/samples/BUILD.gn7
1 files changed, 7 insertions, 0 deletions
diff --git a/chromium/third_party/angle/samples/BUILD.gn b/chromium/third_party/angle/samples/BUILD.gn
index b0ce2088b04..aef9928f8cf 100644
--- a/chromium/third_party/angle/samples/BUILD.gn
+++ b/chromium/third_party/angle/samples/BUILD.gn
@@ -201,7 +201,14 @@ if (angle_build_capture_replay_sample) {
"ANGLE_CAPTURE_REPLAY_SAMPLE_CONTEXT_ID=${_contextid}",
"ANGLE_CAPTURE_REPLAY_SAMPLE_HEADER=angle_capture_context${_contextid}.h",
]
+
suppressed_configs = [ "$angle_root:constructor_and_destructor_warnings" ]
+
+ # Disable optimization to avoid optimizing huge files.
+ if (!is_debug) {
+ suppressed_configs += [ "//build/config/compiler:default_optimization" ]
+ configs += [ "//build/config/compiler:no_optimize" ]
+ }
}
}