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

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

Issue 2667723002: Make static initialization threadsafe by default (Closed)
Patch Set: Created 3 years, 10 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/compiler/BUILD.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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 cflags_c = [ "/TC" ] 48 cflags_c = [ "/TC" ]
49 cflags_cc = [ "/TP" ] 49 cflags_cc = [ "/TP" ]
50 50
51 cflags += [ 51 cflags += [
52 # Tell the compiler to crash on failures. This is undocumented 52 # Tell the compiler to crash on failures. This is undocumented
53 # and unsupported but very handy. 53 # and unsupported but very handy.
54 "/d2FastFail", 54 "/d2FastFail",
55 55
56 # Work around crbug.com/526851, bug in VS 2015 RTM compiler. 56 # Work around crbug.com/526851, bug in VS 2015 RTM compiler.
57 "/Zc:sizedDealloc-", 57 "/Zc:sizedDealloc-",
58
59 # Disable thread-safe statics to avoid overhead and because
60 # they are disabled on other platforms. See crbug.com/587210
61 # and -fno-threadsafe-statics.
62 "/Zc:threadSafeInit-",
63 ] 58 ]
64 59
65 # Building with Clang on Windows is a work in progress and very 60 # Building with Clang on Windows is a work in progress and very
66 # experimental. See crbug.com/82385. 61 # experimental. See crbug.com/82385.
67 if (is_clang) { 62 if (is_clang) {
68 cflags += [ "-fmsc-version=1900" ] 63 cflags += [ "-fmsc-version=1900" ]
69 64
70 if (current_cpu == "x86") { 65 if (current_cpu == "x86") {
71 cflags += [ "-m32" ] 66 cflags += [ "-m32" ]
72 } else { 67 } else {
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 414
420 # Internal stuff -------------------------------------------------------------- 415 # Internal stuff --------------------------------------------------------------
421 416
422 # Config used by the MIDL template to disable warnings. 417 # Config used by the MIDL template to disable warnings.
423 config("midl_warnings") { 418 config("midl_warnings") {
424 if (is_clang) { 419 if (is_clang) {
425 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_". 420 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_".
426 cflags = [ "-Wno-extra-tokens" ] 421 cflags = [ "-Wno-extra-tokens" ]
427 } 422 }
428 } 423 }
OLDNEW
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698