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

Side by Side Diff: build/toolchain/win/midl.gni

Issue 1233453008: Enable -Wextra-tokens on win clang. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 5 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 unified diff | Download patch
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | google_update/google_update.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 assert(is_win) 5 assert(is_win)
6 6
7 import("//build/config/win/visual_studio_version.gni") 7 import("//build/config/win/visual_studio_version.gni")
8 8
9 # This template defines a rule to invoke the MS IDL compiler. 9 # This template defines a rule to invoke the MS IDL compiler.
10 # 10 #
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 visibility = invoker.visibility 94 visibility = invoker.visibility
95 } 95 }
96 96
97 # We only compile the IID files from the IDL tool rather than all outputs. 97 # We only compile the IID files from the IDL tool rather than all outputs.
98 sources = process_file_template(invoker.sources, 98 sources = process_file_template(invoker.sources,
99 [ "$out_dir/$interface_identifier_file" ]) 99 [ "$out_dir/$interface_identifier_file" ])
100 100
101 public_deps = [ 101 public_deps = [
102 ":$action_name", 102 ":$action_name",
103 ] 103 ]
104
105 config("midl_warnings") {
106 if (is_clang) {
107 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_"
108 cflags = [ "-Wno-extra-tokens" ]
109 }
110 }
111 configs += [ ":midl_warnings" ]
104 } 112 }
105 } 113 }
OLDNEW
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | google_update/google_update.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698