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 # arflags apply only to static_libraries. The normal linker configs are only | 107 # arflags apply only to static_libraries. The normal linker configs are only |
108 # set for executable and shared library targets so arflags must be set | 108 # set for executable and shared library targets so arflags must be set |
(...skipping 291 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
400 | 400 |
401 # Internal stuff -------------------------------------------------------------- | 401 # Internal stuff -------------------------------------------------------------- |
402 | 402 |
403 # Config used by the MIDL template to disable warnings. | 403 # Config used by the MIDL template to disable warnings. |
404 config("midl_warnings") { | 404 config("midl_warnings") { |
405 if (is_clang) { | 405 if (is_clang) { |
406 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_". | 406 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_". |
407 cflags = [ "-Wno-extra-tokens" ] | 407 cflags = [ "-Wno-extra-tokens" ] |
408 } | 408 } |
409 } | 409 } |
OLD | NEW |