Commit d22f6e10 authored by Fabrice de Gans-Riberi's avatar Fabrice de Gans-Riberi Committed by Commit Bot

Clean up the build files for opus/

This came up as part of an effort to switch |is_posix| to false in Fuchsia.

Bug: 812974
Change-Id: Ic8d4b745e4e88620d6ad598223d41d0b3ca08a3f
Reviewed-on: https://chromium-review.googlesource.com/988850Reviewed-by: default avatarSergey Ulanov <sergeyu@chromium.org>
Commit-Queue: Fabrice de Gans-Riberi <fdegans@chromium.org>
Cr-Commit-Position: refs/heads/master@{#548254}
parent 9513f52b
......@@ -258,14 +258,12 @@ static_library("opus") {
]
}
if (is_posix && !is_android) {
# Suppress a warning given by opus_decoder.c that tells us
# optimizations are turned off.
cflags += [ "-Wno-#pragma-messages" ]
if (is_debug) {
# Turn off a warning in opus_decoder.c when compiling without optimization.
defines += [ "OPUS_WILL_BE_SLOW" ]
}
if (!is_debug && is_posix &&
(current_cpu == "arm" || current_cpu == "arm64")) {
if (!is_debug && (current_cpu == "arm" || current_cpu == "arm64")) {
configs -= [ "//build/config/compiler:default_optimization" ]
# TODO(crbug.com/621335) Rework this so that we don't have the confusion
......@@ -498,7 +496,7 @@ config("test_opus_decode_config") {
# marked as requiring a non-null value by the nonnull function attribute,
# and expects opus_decode() to fail. Disable the -Wnonnull option to avoid
# a compilation error if -Werror is specified.
if (is_posix) {
if (is_clang) {
cflags = [ "-Wno-nonnull" ]
}
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment