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