infra: Fix UBSAN build.
The compilation of the trace tests would fail in UBSAN with
optimization disabled. Fix this by allowing optimization of the
large traces when running under UBSAN.
Bug: angleproject:5795
Change-Id: Ib11514a00495ed1af4faeecca81283f4c98da135
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/3283164
Reviewed-by: Yuly Novikov <ynovikov@chromium.org>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
diff --git a/gni/angle.gni b/gni/angle.gni
index 13001b2..a551917 100644
--- a/gni/angle.gni
+++ b/gni/angle.gni
@@ -557,7 +557,7 @@
}
# Disable optimization in the trace perf tests to avoid optimizing huge files.
- if (!is_debug) {
+ if (!is_debug && !is_ubsan) {
suppressed_configs += [
"//build/config/compiler:afdo",
"//build/config/compiler:afdo_optimize_size",