mirror of
https://chromium.googlesource.com/libyuv/libyuv
synced 2025-12-06 16:56:55 +08:00
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>
This commit is contained in:
parent
c85a7b3ae3
commit
7320ac5277
3
BUILD.gn
3
BUILD.gn
@ -162,8 +162,9 @@ static_library("libyuv_internal") {
|
|||||||
# crbug.com/538243).
|
# crbug.com/538243).
|
||||||
if (!is_debug || is_nacl) {
|
if (!is_debug || is_nacl) {
|
||||||
configs -= [ "//build/config/compiler:default_optimization" ]
|
configs -= [ "//build/config/compiler:default_optimization" ]
|
||||||
|
|
||||||
# Enable optimize for speed (-O2) over size (-Os).
|
# 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
|
# To enable AVX2 or other cpu optimization, pass flag here
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user