OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 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 import("//build/config/clang/clang.gni") | 5 import("//build/config/clang/clang.gni") |
6 import("//build/config/compiler/compiler.gni") | 6 import("//build/config/compiler/compiler.gni") |
7 import("//build/config/sanitizers/sanitizers.gni") | 7 import("//build/config/sanitizers/sanitizers.gni") |
8 import("//build/config/win/visual_studio_version.gni") | 8 import("//build/config/win/visual_studio_version.gni") |
9 import("//build/toolchain/toolchain.gni") | 9 import("//build/toolchain/toolchain.gni") |
10 | 10 |
(...skipping 384 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 "/ZW", | 395 "/ZW", |
396 "/EHsc", | 396 "/EHsc", |
397 ] | 397 ] |
398 } | 398 } |
399 | 399 |
400 # Internal stuff -------------------------------------------------------------- | 400 # Internal stuff -------------------------------------------------------------- |
401 | 401 |
402 # Config used by the MIDL template to disable warnings. | 402 # Config used by the MIDL template to disable warnings. |
403 config("midl_warnings") { | 403 config("midl_warnings") { |
404 if (is_clang) { | 404 if (is_clang) { |
405 cflags = [ | 405 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_". |
406 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_". | 406 cflags = [ "-Wno-extra-tokens" ] |
407 "-Wno-extra-tokens", | |
408 | |
409 # TODO(thakis): Remove this once clang is rolled past r279116, | |
410 # https://crbug.com/637456 | |
411 "-Wno-extern-initializer", | |
412 ] | |
413 } | 407 } |
414 } | 408 } |
OLD | NEW |