aboutsummaryrefslogtreecommitdiff
path: root/BUILD.gn
diff options
context:
space:
mode:
authorMirko Bonadei <mbonadei@chromium.org>2019-09-17 10:58:41 +0200
committerFrank Barchard <fbarchard@chromium.org>2019-09-17 17:39:54 +0000
commit7320ac5277cee7d256cae517c218229eaa259f3b (patch)
tree5750d8ed854552d3c8185715740e5043a760d8e7 /BUILD.gn
parentc85a7b3ae3efb8b7e63aa86122c42843333ab91d (diff)
downloadlibyuv-7320ac5277cee7d256cae517c218229eaa259f3b.tar.gz
Re-enable optimize_max to fix UBSan.
This reverts the changes to BUILD.gn done by [1] because they were breaking UBSan. At least one between: //build/config/compiler:default_optimization //build/config/compiler:optimize_max need to be selected, this CL re-enables optimize_max since that was the previous default. [1] - https://chromium-review.googlesource.com/c/libyuv/libyuv/+/1790959 Bug: None Change-Id: I136179c2e814f7aba9cc8515cc4825cbd41f8abb Reviewed-on: https://chromium-review.googlesource.com/c/libyuv/libyuv/+/1809137 Commit-Queue: Frank Barchard <fbarchard@chromium.org> Reviewed-by: Frank Barchard <fbarchard@chromium.org>
Diffstat (limited to 'BUILD.gn')
-rw-r--r--BUILD.gn3
1 files changed, 2 insertions, 1 deletions
diff --git a/BUILD.gn b/BUILD.gn
index 1bdb6868..2196be41 100644
--- a/BUILD.gn
+++ b/BUILD.gn
@@ -162,8 +162,9 @@ static_library("libyuv_internal") {
# crbug.com/538243).
if (!is_debug || is_nacl) {
configs -= [ "//build/config/compiler:default_optimization" ]
+
# Enable optimize for speed (-O2) over size (-Os).
- #configs += [ "//build/config/compiler:optimize_max" ]
+ configs += [ "//build/config/compiler:optimize_max" ]
}
# To enable AVX2 or other cpu optimization, pass flag here