| 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 | |
| 159 # In general, Windows is totally different, but all the other builds share | 146 # In general, Windows is totally different, but all the other builds share |
| 160 # some common GCC configuration. | 147 # some common GCC configuration. |
| 161 if (!is_win) { | 148 if (!is_win) { |
| 162 # Common GCC compiler flags setup. | 149 # Common GCC compiler flags setup. |
| 163 # -------------------------------- | 150 # -------------------------------- |
| 164 cflags += [ "-fno-strict-aliasing" ] # See http://crbug.com/32204 | 151 cflags += [ "-fno-strict-aliasing" ] # See http://crbug.com/32204 |
| 165 cflags_cc += [ | 152 cflags_cc += [ |
| 166 # If this is removed then remove the corresponding /Zc:threadSafeInit- for | 153 # If this is removed then remove the corresponding /Zc:threadSafeInit- for |
| 167 # Windows. | 154 # Windows. |
| 168 "-fno-threadsafe-statics", | 155 "-fno-threadsafe-statics", |
| (...skipping 1181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1350 | 1337 |
| 1351 if (is_ios || is_mac) { | 1338 if (is_ios || is_mac) { |
| 1352 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1339 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
| 1353 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1340 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
| 1354 config("enable_arc") { | 1341 config("enable_arc") { |
| 1355 common_flags = [ "-fobjc-arc" ] | 1342 common_flags = [ "-fobjc-arc" ] |
| 1356 cflags_objc = common_flags | 1343 cflags_objc = common_flags |
| 1357 cflags_objcc = common_flags | 1344 cflags_objcc = common_flags |
| 1358 } | 1345 } |
| 1359 } | 1346 } |
| OLD | NEW |