| 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 | 10 |
| (...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 136 } else if (is_ios || is_mac) { | 136 } else if (is_ios || is_mac) { |
| 137 configs += [ "//build/config/mac:compiler" ] | 137 configs += [ "//build/config/mac:compiler" ] |
| 138 } | 138 } |
| 139 | 139 |
| 140 # See the definitions below. | 140 # See the definitions below. |
| 141 configs += [ | 141 configs += [ |
| 142 ":compiler_cpu_abi", | 142 ":compiler_cpu_abi", |
| 143 ":compiler_codegen", | 143 ":compiler_codegen", |
| 144 ] | 144 ] |
| 145 | 145 |
| 146 if (is_win) { |
| 147 ldflags += [ |
| 148 # Suggested by Microsoft Devrel to avoid |
| 149 # LINK : fatal error LNK1248: image size (80000000) exceeds maximum allo
wable size (80000000) |
| 150 # which started happening more regularly after VS2013 Update 4. |
| 151 # Needs to be a bit lower for VS2015, or else errors out. |
| 152 "/maxilksize:0x7ff00000", |
| 153 |
| 154 # Tell the linker to crash on failures. |
| 155 "/fastfail", |
| 156 ] |
| 157 } |
| 158 |
| 146 # In general, Windows is totally different, but all the other builds share | 159 # In general, Windows is totally different, but all the other builds share |
| 147 # some common GCC configuration. | 160 # some common GCC configuration. |
| 148 if (!is_win) { | 161 if (!is_win) { |
| 149 # Common GCC compiler flags setup. | 162 # Common GCC compiler flags setup. |
| 150 # -------------------------------- | 163 # -------------------------------- |
| 151 cflags += [ "-fno-strict-aliasing" ] # See http://crbug.com/32204 | 164 cflags += [ "-fno-strict-aliasing" ] # See http://crbug.com/32204 |
| 152 cflags_cc += [ | 165 cflags_cc += [ |
| 153 # If this is removed then remove the corresponding /Zc:threadSafeInit- for | 166 # If this is removed then remove the corresponding /Zc:threadSafeInit- for |
| 154 # Windows. | 167 # Windows. |
| 155 "-fno-threadsafe-statics", | 168 "-fno-threadsafe-statics", |
| (...skipping 1182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1338 | 1351 |
| 1339 if (is_ios || is_mac) { | 1352 if (is_ios || is_mac) { |
| 1340 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1353 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
| 1341 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1354 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
| 1342 config("enable_arc") { | 1355 config("enable_arc") { |
| 1343 common_flags = [ "-fobjc-arc" ] | 1356 common_flags = [ "-fobjc-arc" ] |
| 1344 cflags_objc = common_flags | 1357 cflags_objc = common_flags |
| 1345 cflags_objcc = common_flags | 1358 cflags_objcc = common_flags |
| 1346 } | 1359 } |
| 1347 } | 1360 } |
| OLD | NEW |