Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(42)

Side by Side Diff: build/config/win/BUILD.gn

Issue 1470483002: win gn: Use /safeseh, not /SAFESEH (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: don't change linker Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698