Chromium Code Reviews| 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 import("//build/toolchain/toolchain.gni") | 8 import("//build/toolchain/toolchain.gni") |
| 9 | 9 |
| 10 assert(is_win) | 10 assert(is_win) |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 89 # cmd.exe doesn't understand ANSI escape codes by default, | 89 # cmd.exe doesn't understand ANSI escape codes by default, |
| 90 # so only enable them if something emulating them is around. | 90 # so only enable them if something emulating them is around. |
| 91 "-fansi-escape-codes", | 91 "-fansi-escape-codes", |
| 92 ] | 92 ] |
| 93 } | 93 } |
| 94 | 94 |
| 95 # Clang runtime libraries, such as the sanitizer runtimes, live here. | 95 # Clang runtime libraries, such as the sanitizer runtimes, live here. |
| 96 lib_dirs = [ "//third_party/llvm-build/Release+Asserts/lib/clang/$clang_vers ion/lib/windows" ] | 96 lib_dirs = [ "//third_party/llvm-build/Release+Asserts/lib/clang/$clang_vers ion/lib/windows" ] |
| 97 } | 97 } |
| 98 | 98 |
| 99 if (is_syzyasan) { | 99 # Ensures that the PDB file contains FIXUP information (growing the PDB file |
| 100 # SyzyAsan needs /PROFILE turned on to produce appropriate pdbs. | 100 # by about 5%) but does not otherwise alter the output binary. This |
| 101 assert(!is_win_fastlink, "/PROFILE and /DEBUG:FASTLINK are incompatible") | 101 # information is used by the Syzygy optimization tool when decomposing the |
| 102 # release image. | |
| 103 if (!is_debug && !is_win_fastlink && !is_clang) { | |
|
brucedawson
2016/06/21 21:28:49
I didn't notice is_clang checks in the GYP version
Sébastien Marchand
2016/06/22 14:59:47
There's no 'is_clang' check in the GYP version of
| |
| 102 ldflags = [ "/PROFILE" ] | 104 ldflags = [ "/PROFILE" ] |
| 103 } | 105 } |
| 104 | 106 |
| 105 # 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 |
| 106 # 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 |
| 107 # elsewhere. Since this is relatively contained, we just apply them in this | 109 # elsewhere. Since this is relatively contained, we just apply them in this |
| 108 # more general config and they will only have an effect on static libraries. | 110 # more general config and they will only have an effect on static libraries. |
| 109 arflags = [ | 111 arflags = [ |
| 110 # "No public symbols found; archive member will be inaccessible." This | 112 # "No public symbols found; archive member will be inaccessible." This |
| 111 # means that one or more object files in the library can never be | 113 # means that one or more object files in the library can never be |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 386 | 388 |
| 387 # Internal stuff -------------------------------------------------------------- | 389 # Internal stuff -------------------------------------------------------------- |
| 388 | 390 |
| 389 # Config used by the MIDL template to disable warnings. | 391 # Config used by the MIDL template to disable warnings. |
| 390 config("midl_warnings") { | 392 config("midl_warnings") { |
| 391 if (is_clang) { | 393 if (is_clang) { |
| 392 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_". | 394 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_". |
| 393 cflags = [ "-Wno-extra-tokens" ] | 395 cflags = [ "-Wno-extra-tokens" ] |
| 394 } | 396 } |
| 395 } | 397 } |
| OLD | NEW |