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

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

Issue 1683973002: Enable threadsafe static initialization (aka 'magic statics') (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 4 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 | « 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/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/chrome_build.gni") 6 import("//build/config/chrome_build.gni")
7 if (current_cpu == "arm") { 7 if (current_cpu == "arm") {
8 import("//build/config/arm.gni") 8 import("//build/config/arm.gni")
9 } 9 }
10 if (current_cpu == "mipsel" || current_cpu == "mips64el") { 10 if (current_cpu == "mipsel" || current_cpu == "mips64el") {
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 cflags = [] 78 cflags = []
79 cflags_c = [] 79 cflags_c = []
80 cflags_cc = [] 80 cflags_cc = []
81 ldflags = [] 81 ldflags = []
82 defines = [] 82 defines = []
83 83
84 # Common GCC compiler flags setup. 84 # Common GCC compiler flags setup.
85 # -------------------------------- 85 # --------------------------------
86 cflags += [ "-fno-strict-aliasing" ] # See http://crbug.com/32204 86 cflags += [ "-fno-strict-aliasing" ] # See http://crbug.com/32204
87 cflags_cc += [ 87 cflags_cc += [
88 "-fno-threadsafe-statics",
89
90 # Not exporting C++ inline functions can generally be applied anywhere 88 # Not exporting C++ inline functions can generally be applied anywhere
91 # so we do so here. Normal function visibility is controlled by 89 # so we do so here. Normal function visibility is controlled by
92 # //build/config/gcc:symbol_visibility_hidden. 90 # //build/config/gcc:symbol_visibility_hidden.
93 "-fvisibility-inlines-hidden", 91 "-fvisibility-inlines-hidden",
94 ] 92 ]
95 93
96 # Stack protection. 94 # Stack protection.
97 if (is_mac) { 95 if (is_mac) {
98 cflags += [ "-fstack-protector-all" ] 96 cflags += [ "-fstack-protector-all" ]
99 } else if (is_linux) { 97 } else if (is_linux) {
(...skipping 1019 matching lines...) Expand 10 before | Expand all | Expand 10 after
1119 if (symbol_level == 0) { 1117 if (symbol_level == 0) {
1120 configs = [ ":no_symbols" ] 1118 configs = [ ":no_symbols" ]
1121 } else if (symbol_level == 1) { 1119 } else if (symbol_level == 1) {
1122 configs = [ ":minimal_symbols" ] 1120 configs = [ ":minimal_symbols" ]
1123 } else if (symbol_level == 2) { 1121 } else if (symbol_level == 2) {
1124 configs = [ ":symbols" ] 1122 configs = [ ":symbols" ]
1125 } else { 1123 } else {
1126 assert(false) 1124 assert(false)
1127 } 1125 }
1128 } 1126 }
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