| 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 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 88 if (exec_script("//build/win/use_ansi_codes.py", [], "trim string") == | 88 if (exec_script("//build/win/use_ansi_codes.py", [], "trim string") == |
| 89 "True") { | 89 "True") { |
| 90 cflags += [ | 90 cflags += [ |
| 91 # cmd.exe doesn't understand ANSI escape codes by default, | 91 # cmd.exe doesn't understand ANSI escape codes by default, |
| 92 # so only enable them if something emulating them is around. | 92 # so only enable them if something emulating them is around. |
| 93 "-fansi-escape-codes", | 93 "-fansi-escape-codes", |
| 94 ] | 94 ] |
| 95 } | 95 } |
| 96 | 96 |
| 97 # Clang runtime libraries, such as the sanitizer runtimes, live here. | 97 # Clang runtime libraries, such as the sanitizer runtimes, live here. |
| 98 lib_dirs = [ "//third_party/llvm-build/Release+Asserts/lib/clang/3.9.0/lib/w
indows" ] | 98 lib_dirs = [ "//third_party/llvm-build/Release+Asserts/lib/clang/$clang_vers
ion/lib/windows" ] |
| 99 } | 99 } |
| 100 | 100 |
| 101 if (is_syzyasan) { | 101 if (is_syzyasan) { |
| 102 # SyzyAsan needs /PROFILE turned on to produce appropriate pdbs. | 102 # SyzyAsan needs /PROFILE turned on to produce appropriate pdbs. |
| 103 assert(!is_win_fastlink, "/PROFILE and /DEBUG:FASTLINK are incompatible") | 103 assert(!is_win_fastlink, "/PROFILE and /DEBUG:FASTLINK are incompatible") |
| 104 ldflags = [ "/PROFILE" ] | 104 ldflags = [ "/PROFILE" ] |
| 105 } | 105 } |
| 106 } | 106 } |
| 107 | 107 |
| 108 config("vs_code_analysis") { | 108 config("vs_code_analysis") { |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 387 | 387 |
| 388 # Internal stuff -------------------------------------------------------------- | 388 # Internal stuff -------------------------------------------------------------- |
| 389 | 389 |
| 390 # Config used by the MIDL template to disable warnings. | 390 # Config used by the MIDL template to disable warnings. |
| 391 config("midl_warnings") { | 391 config("midl_warnings") { |
| 392 if (is_clang) { | 392 if (is_clang) { |
| 393 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_". | 393 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_". |
| 394 cflags = [ "-Wno-extra-tokens" ] | 394 cflags = [ "-Wno-extra-tokens" ] |
| 395 } | 395 } |
| 396 } | 396 } |
| OLD | NEW |