Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(543)

Unified Diff: third_party/opus/BUILD.gn

Issue 1651643002: Roll clang 257955:259395 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: opuuuuuuuuhuhuhuhuhuhuhus Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | third_party/opus/opus.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/opus/BUILD.gn
diff --git a/third_party/opus/BUILD.gn b/third_party/opus/BUILD.gn
index 123714f07ccf77bf19677783f4e2f38dc6dcbcd5..45794698592ea745f0226d6435ae886813f031d7 100644
--- a/third_party/opus/BUILD.gn
+++ b/third_party/opus/BUILD.gn
@@ -56,6 +56,13 @@ if (use_opus_rtcd) {
}
}
+config("opus_warnings") {
+ if (is_clang && !is_nacl) {
+ # TODO(thakis): Remove once silk/macros.h has been fixed
+ cflags = [ "-Wno-expansion-to-defined" ]
+ }
+}
+
source_set("opus") {
gypi_values = exec_script("//build/gypi_to_gn.py",
[ rebase_path("opus_srcs.gypi") ],
@@ -74,7 +81,12 @@ source_set("opus") {
]
configs -= [ "//build/config/compiler:chromium_code" ]
- configs += [ "//build/config/compiler:no_chromium_code" ]
+ configs += [
+ "//build/config/compiler:no_chromium_code",
+
+ # Must be after no_chromium_code to have an effect:
+ ":opus_warnings",
+ ]
public_configs = [ ":opus_config" ]
if (is_win) {
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | third_party/opus/opus.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698