| 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 |
| 11 # This is included by reference in the //build/config/compiler config that | 11 # This is included by reference in the //build/config/compiler config that |
| 12 # is applied to all targets. It is here to separate out the logic that is | 12 # is applied to all targets. It is here to separate out the logic that is |
| 13 # Windows-only. | 13 # Windows-only. |
| 14 config("compiler") { | 14 config("compiler") { |
| 15 asmflags = [ | 15 asmflags = [ |
| 16 # When /SAFESEH is specified, the linker will only produce an image if it | 16 # When /safeseh is specified, the linker will only produce an image if it |
| 17 # can also produce a table of the image's safe exception handlers. This | 17 # can also produce a table of the image's safe exception handlers. This |
| 18 # table specifies for the operating system which exception handlers are | 18 # table specifies for the operating system which exception handlers are |
| 19 # valid for the image. | 19 # valid for the image. Note that /SAFESEH isn't accepted on the command |
| 20 "/SAFESEH", | 20 # line, only /safeseh. |
| 21 "/safeseh", |
| 21 ] | 22 ] |
| 22 | 23 |
| 23 cflags = [ | 24 cflags = [ |
| 24 "/Gy", # Enable function-level linking. | 25 "/Gy", # Enable function-level linking. |
| 25 "/GS", # Enable buffer security checking. | 26 "/GS", # Enable buffer security checking. |
| 26 "/FS", # Preserve previous PDB behavior. | 27 "/FS", # Preserve previous PDB behavior. |
| 27 "/bigobj", # Some of our files are bigger than the regular limits. | 28 "/bigobj", # Some of our files are bigger than the regular limits. |
| 28 ] | 29 ] |
| 29 | 30 |
| 30 # Force C/C++ mode for the given GN detected file type. This is necessary | 31 # Force C/C++ mode for the given GN detected file type. This is necessary |
| (...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 | 310 |
| 310 # Internal stuff -------------------------------------------------------------- | 311 # Internal stuff -------------------------------------------------------------- |
| 311 | 312 |
| 312 # Config used by the MIDL template to disable warnings. | 313 # Config used by the MIDL template to disable warnings. |
| 313 config("midl_warnings") { | 314 config("midl_warnings") { |
| 314 if (is_clang) { | 315 if (is_clang) { |
| 315 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_". | 316 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_". |
| 316 cflags = [ "-Wno-extra-tokens" ] | 317 cflags = [ "-Wno-extra-tokens" ] |
| 317 } | 318 } |
| 318 } | 319 } |
| OLD | NEW |