blob: 63ccc10e6402fa59b2e4745f75293fb033b0db8d [file] [log] [blame]
# Copyright 2023 The ChromiumOS Authors
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
COPTS = [
"-DWEBRTC_POSIX=1",
"-DWEBRTC_LINUX=1",
"-DWEBRTC_APM_DEBUG_DUMP=0",
"-DWEBRTC_INTELLIGIBILITY_ENHANCER=0",
"-DWEBRTC_NS_FLOAT=1",
# Disable warnings.
"-Wno-unknown-warning-option",
"-Wno-deprecated-declarations",
"-Wno-return-type", # gcc
"-Wno-nonnull-compare", # gcc
"-Wno-address", # gcc
] + select({
"//:neon_build": ["-DWEBRTC_HAS_NEON"],
"//conditions:default": [],
})
AVX2_COPTS = ["-mavx2", "-mfma"]
X64_ONLY = select({
"@platforms//cpu:x86_64": [],
"//conditions:default": ["@platforms//:incompatible"],
})
def select_x64(output):
return select({
"@platforms//cpu:x86_64": output,
"//conditions:default": [],
})