| 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/compiler/compiler.gni") | 5 import("//build/config/compiler/compiler.gni") |
| 6 import("//build/config/sanitizers/sanitizers.gni") | 6 import("//build/config/sanitizers/sanitizers.gni") |
| 7 import("//build/config/win/visual_studio_version.gni") | 7 import("//build/config/win/visual_studio_version.gni") |
| 8 | 8 |
| 9 assert(is_win) | 9 assert(is_win) |
| 10 | 10 |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 82 } | 82 } |
| 83 | 83 |
| 84 if (exec_script("//build/win/use_ansi_codes.py", [], "trim string") == | 84 if (exec_script("//build/win/use_ansi_codes.py", [], "trim string") == |
| 85 "True") { | 85 "True") { |
| 86 cflags += [ | 86 cflags += [ |
| 87 # cmd.exe doesn't understand ANSI escape codes by default, | 87 # cmd.exe doesn't understand ANSI escape codes by default, |
| 88 # so only enable them if something emulating them is around. | 88 # so only enable them if something emulating them is around. |
| 89 "-fansi-escape-codes", | 89 "-fansi-escape-codes", |
| 90 ] | 90 ] |
| 91 } | 91 } |
| 92 |
| 93 # Clang runtime libraries, such as the sanitizer runtimes, live here. |
| 94 lib_dirs = [ "//third_party/llvm-build/Release+Asserts/lib/clang/3.9.0/lib/w
indows" ] |
| 92 } | 95 } |
| 93 | 96 |
| 94 if (is_syzyasan) { | 97 if (is_syzyasan) { |
| 95 # SyzyAsan needs /PROFILE turned on to produce appropriate pdbs. | 98 # SyzyAsan needs /PROFILE turned on to produce appropriate pdbs. |
| 96 assert(!is_win_fastlink, "/PROFILE and /DEBUG:FASTLINK are incompatible") | 99 assert(!is_win_fastlink, "/PROFILE and /DEBUG:FASTLINK are incompatible") |
| 97 ldflags = [ "/PROFILE" ] | 100 ldflags = [ "/PROFILE" ] |
| 98 } | 101 } |
| 99 } | 102 } |
| 100 | 103 |
| 101 config("vs_code_analysis") { | 104 config("vs_code_analysis") { |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 377 | 380 |
| 378 # Internal stuff -------------------------------------------------------------- | 381 # Internal stuff -------------------------------------------------------------- |
| 379 | 382 |
| 380 # Config used by the MIDL template to disable warnings. | 383 # Config used by the MIDL template to disable warnings. |
| 381 config("midl_warnings") { | 384 config("midl_warnings") { |
| 382 if (is_clang) { | 385 if (is_clang) { |
| 383 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_". | 386 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_". |
| 384 cflags = [ "-Wno-extra-tokens" ] | 387 cflags = [ "-Wno-extra-tokens" ] |
| 385 } | 388 } |
| 386 } | 389 } |
| OLD | NEW |