From 9724aa3d563375089c7fe9b29cf42177e4380356 Mon Sep 17 00:00:00 2001 From: Jamie Madill Date: Thu, 14 May 2020 13:40:58 -0400 Subject: [PATCH] Suppress optimization in trace/replay sample. Bug: angleproject:4048 Change-Id: I44154a53698fb2447682cbbbe2f1982895677102 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/2202198 Commit-Queue: Jamie Madill Reviewed-by: Cody Northrop --- samples/BUILD.gn | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/samples/BUILD.gn b/samples/BUILD.gn index b0ce2088b..aef9928f8 100644 --- a/samples/BUILD.gn +++ b/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" ] + } } }