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 = [ |
| 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 |
| 18 # table specifies for the operating system which exception handlers are |
| 19 # valid for the image. |
| 20 "/SAFESEH", |
| 21 ] |
| 22 |
15 cflags = [ | 23 cflags = [ |
16 "/Gy", # Enable function-level linking. | 24 "/Gy", # Enable function-level linking. |
17 "/GS", # Enable buffer security checking. | 25 "/GS", # Enable buffer security checking. |
18 "/FS", # Preserve previous PDB behavior. | 26 "/FS", # Preserve previous PDB behavior. |
19 "/bigobj", # Some of our files are bigger than the regular limits. | 27 "/bigobj", # Some of our files are bigger than the regular limits. |
20 ] | 28 ] |
21 | 29 |
22 # Force C/C++ mode for the given GN detected file type. This is necessary | 30 # Force C/C++ mode for the given GN detected file type. This is necessary |
23 # for precompiled headers where the same source file is compiled in both | 31 # for precompiled headers where the same source file is compiled in both |
24 # modes. | 32 # modes. |
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 | 313 |
306 # Internal stuff -------------------------------------------------------------- | 314 # Internal stuff -------------------------------------------------------------- |
307 | 315 |
308 # Config used by the MIDL template to disable warnings. | 316 # Config used by the MIDL template to disable warnings. |
309 config("midl_warnings") { | 317 config("midl_warnings") { |
310 if (is_clang) { | 318 if (is_clang) { |
311 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_". | 319 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_". |
312 cflags = [ "-Wno-extra-tokens" ] | 320 cflags = [ "-Wno-extra-tokens" ] |
313 } | 321 } |
314 } | 322 } |
OLD | NEW |