diff options
author | Mirko Bonadei <mbonadei@chromium.org> | 2019-09-17 10:58:41 +0200 |
---|---|---|
committer | Frank Barchard <fbarchard@chromium.org> | 2019-09-17 17:39:54 +0000 |
commit | 7320ac5277cee7d256cae517c218229eaa259f3b (patch) | |
tree | 5750d8ed854552d3c8185715740e5043a760d8e7 /BUILD.gn | |
parent | c85a7b3ae3efb8b7e63aa86122c42843333ab91d (diff) | |
download | libyuv-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.gn | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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 |