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

Unified Diff: third_party/winsdk_samples/BUILD.gn

Issue 2281513002: GN: Fix windows clang errors. Attempt 2. (Closed)
Patch Set: Revert mb_config.pyl. Created 4 years, 4 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 | « no previous file | webrtc/api/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/winsdk_samples/BUILD.gn
diff --git a/third_party/winsdk_samples/BUILD.gn b/third_party/winsdk_samples/BUILD.gn
index 82d12332e3f6852021aeff930c342d89d1cff61b..114f31ff89aeef3c43c8af26ee40c9fc09c98a48 100644
--- a/third_party/winsdk_samples/BUILD.gn
+++ b/third_party/winsdk_samples/BUILD.gn
@@ -13,6 +13,29 @@ if (is_win) {
include_dirs = [ baseclasses_dir ]
}
+ config("winsdk_samples_warnings_config") {
+ if (is_win && is_clang) {
+ cflags = [
+ # Disable warnings failing when compiling with Clang on Windows.
+ # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
+ "-Wno-comment",
+ "-Wno-delete-non-virtual-dtor",
+ "-Wno-ignored-attributes",
+ "-Wno-logical-op-parentheses",
+ "-Wno-non-pod-varargs",
+ "-Wno-microsoft-extra-qualification",
+ "-Wno-missing-braces",
+ "-Wno-overloaded-virtual",
+ "-Wno-parentheses",
+ "-Wno-reorder",
+ "-Wno-string-conversion",
+ "-Wno-tautological-constant-out-of-range-compare",
+ "-Wno-unused-private-field",
+ "-Wno-writable-strings",
+ ]
+ }
+ }
+
static_library("winsdk_samples") {
sources = [
"$baseclasses_dir/amextra.cpp",
@@ -84,26 +107,9 @@ if (is_win) {
"//build/config/compiler:chromium_code",
"//build/config/win:nominmax",
]
- configs += [ "//build/config/compiler:no_chromium_code" ]
- if (is_win && is_clang) {
- cflags += [
- # Disable warnings failing when compiling with Clang on Windows.
- # https://bugs.chromium.org/p/webrtc/issues/detail?id=5366
- "-Wno-comment",
- "-Wno-delete-non-virtual-dtor",
- "-Wno-ignored-attributes",
- "-Wno-logical-op-parentheses",
- "-Wno-non-pod-varargs",
- "-Wno-microsoft-extra-qualification",
- "-Wno-missing-braces",
- "-Wno-overloaded-virtual",
- "-Wno-parentheses",
- "-Wno-reorder",
- "-Wno-string-conversion",
- "-Wno-tautological-constant-out-of-range-compare",
- "-Wno-unused-private-field",
- "-Wno-writable-strings",
- ]
- }
+ configs += [
+ "//build/config/compiler:no_chromium_code",
+ ":winsdk_samples_warnings_config",
+ ]
}
}
« no previous file with comments | « no previous file | webrtc/api/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698