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/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 import("//build/config/compiler/compiler.gni") | 7 import("//build/config/compiler/compiler.gni") |
8 import("//build/config/nacl/config.gni") | 8 import("//build/config/nacl/config.gni") |
9 import("//build/toolchain/cc_wrapper.gni") | 9 import("//build/toolchain/cc_wrapper.gni") |
10 import("//build/toolchain/toolchain.gni") | 10 import("//build/toolchain/toolchain.gni") |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 ":compiler_codegen", | 174 ":compiler_codegen", |
175 ] | 175 ] |
176 | 176 |
177 # In general, Windows is totally different, but all the other builds share | 177 # In general, Windows is totally different, but all the other builds share |
178 # some common GCC configuration. | 178 # some common GCC configuration. |
179 if (!is_win) { | 179 if (!is_win) { |
180 # Common GCC compiler flags setup. | 180 # Common GCC compiler flags setup. |
181 # -------------------------------- | 181 # -------------------------------- |
182 cflags += [ "-fno-strict-aliasing" ] # See http://crbug.com/32204 | 182 cflags += [ "-fno-strict-aliasing" ] # See http://crbug.com/32204 |
183 cflags_cc += [ | 183 cflags_cc += [ |
184 # If this is removed then remove the corresponding /Zc:threadSafeInit- for | |
185 # Windows. | |
186 "-fno-threadsafe-statics", | |
187 | |
188 # Not exporting C++ inline functions can generally be applied anywhere | 184 # Not exporting C++ inline functions can generally be applied anywhere |
189 # so we do so here. Normal function visibility is controlled by | 185 # so we do so here. Normal function visibility is controlled by |
190 # //build/config/gcc:symbol_visibility_hidden. | 186 # //build/config/gcc:symbol_visibility_hidden. |
191 "-fvisibility-inlines-hidden", | 187 "-fvisibility-inlines-hidden", |
192 ] | 188 ] |
193 | 189 |
194 # Stack protection. | 190 # Stack protection. |
195 if (is_mac) { | 191 if (is_mac) { |
196 # The strong variant of the stack protector significantly increases | 192 # The strong variant of the stack protector significantly increases |
197 # binary size, so only enable it in debug mode. | 193 # binary size, so only enable it in debug mode. |
(...skipping 1481 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1679 | 1675 |
1680 if (is_ios || is_mac) { | 1676 if (is_ios || is_mac) { |
1681 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1677 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
1682 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1678 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
1683 config("enable_arc") { | 1679 config("enable_arc") { |
1684 common_flags = [ "-fobjc-arc" ] | 1680 common_flags = [ "-fobjc-arc" ] |
1685 cflags_objc = common_flags | 1681 cflags_objc = common_flags |
1686 cflags_objcc = common_flags | 1682 cflags_objcc = common_flags |
1687 } | 1683 } |
1688 } | 1684 } |
OLD | NEW |