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