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

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

Issue 2214743002: Win/GN: Make no_exception config explicit. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix formatting Created 4 years, 4 months 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 | « build/config/BUILDCONFIG.gn ('k') | 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/clang/clang.gni") 5 import("//build/config/clang/clang.gni")
6 import("//build/config/compiler/compiler.gni") 6 import("//build/config/compiler/compiler.gni")
7 import("//build/config/sanitizers/sanitizers.gni") 7 import("//build/config/sanitizers/sanitizers.gni")
8 import("//build/config/win/visual_studio_version.gni") 8 import("//build/config/win/visual_studio_version.gni")
9 import("//build/toolchain/toolchain.gni") 9 import("//build/toolchain/toolchain.gni")
10 10
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 "/wd28252", # Inconsistent SAL annotations 149 "/wd28252", # Inconsistent SAL annotations
150 "/wd28253", # Inconsistent SAL annotations 150 "/wd28253", # Inconsistent SAL annotations
151 "/wd28278", # Function appears with no prototype in scope 151 "/wd28278", # Function appears with no prototype in scope
152 "/wd28285", # syntax error in SAL annotation (in algorithm) 152 "/wd28285", # syntax error in SAL annotation (in algorithm)
153 "/wd28301", # Inconsistent SAL annotations 153 "/wd28301", # Inconsistent SAL annotations
154 "/wd28182", # Dereferencing NULL pointer 154 "/wd28182", # Dereferencing NULL pointer
155 ] 155 ]
156 } 156 }
157 } 157 }
158 158
159 # This should go in :runtime_library.
brettw 2016/08/04 22:28:25 This comment doesn't make sense to me.
160 config("no_exceptions") {
161 defines = [ "_HAS_EXCEPTIONS=0" ]
162 }
163
159 # This is included by reference in the //build/config/compiler:runtime_library 164 # This is included by reference in the //build/config/compiler:runtime_library
160 # config that is applied to all targets. It is here to separate out the logic 165 # config that is applied to all targets. It is here to separate out the logic
161 # that is Windows-only. Please see that target for advice on what should go in 166 # that is Windows-only. Please see that target for advice on what should go in
162 # :runtime_library vs. :compiler. 167 # :runtime_library vs. :compiler.
163 config("runtime_library") { 168 config("runtime_library") {
164 cflags = [] 169 cflags = []
165 170
166 # Defines that set up the CRT. 171 # Defines that set up the CRT.
167 defines = [ 172 defines = [
168 "__STD_C", 173 "__STD_C",
169 "_CRT_RAND_S", 174 "_CRT_RAND_S",
170 "_CRT_SECURE_NO_DEPRECATE", 175 "_CRT_SECURE_NO_DEPRECATE",
171 "_HAS_EXCEPTIONS=0",
172 "_SCL_SECURE_NO_DEPRECATE", 176 "_SCL_SECURE_NO_DEPRECATE",
173 ] 177 ]
174 178
175 # Defines that set up the Windows SDK. 179 # Defines that set up the Windows SDK.
176 defines += [ 180 defines += [
177 "_ATL_NO_OPENGL", 181 "_ATL_NO_OPENGL",
178 "_WINDOWS", 182 "_WINDOWS",
179 "CERT_CHAIN_PARA_HAS_EXTRA_FIELDS", 183 "CERT_CHAIN_PARA_HAS_EXTRA_FIELDS",
180 "NTDDI_VERSION=0x0A000000", 184 "NTDDI_VERSION=0x0A000000",
181 "PSAPI_VERSION=1", 185 "PSAPI_VERSION=1",
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 396
393 # Internal stuff -------------------------------------------------------------- 397 # Internal stuff --------------------------------------------------------------
394 398
395 # Config used by the MIDL template to disable warnings. 399 # Config used by the MIDL template to disable warnings.
396 config("midl_warnings") { 400 config("midl_warnings") {
397 if (is_clang) { 401 if (is_clang) {
398 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_". 402 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_".
399 cflags = [ "-Wno-extra-tokens" ] 403 cflags = [ "-Wno-extra-tokens" ]
400 } 404 }
401 } 405 }
OLDNEW
« no previous file with comments | « build/config/BUILDCONFIG.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698