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

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

Issue 2559843002: move lld-incompatible linker flags inside !use_lld clause (Closed)
Patch Set: Created 4 years 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 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 1260 matching lines...) Expand 10 before | Expand all | Expand 10 after
1271 # Set the number of LTCG code-gen threads to eight. The default is four. 1271 # Set the number of LTCG code-gen threads to eight. The default is four.
1272 # This gives a 5-10% link speedup. 1272 # This gives a 5-10% link speedup.
1273 "/cgthreads:8", 1273 "/cgthreads:8",
1274 ] 1274 ]
1275 if (use_incremental_wpo) { 1275 if (use_incremental_wpo) {
1276 # Incremental Link-time code generation. 1276 # Incremental Link-time code generation.
1277 common_optimize_on_ldflags += [ "/LTCG:INCREMENTAL" ] 1277 common_optimize_on_ldflags += [ "/LTCG:INCREMENTAL" ]
1278 } else { 1278 } else {
1279 common_optimize_on_ldflags += [ "/LTCG" ] # Link-time code generation. 1279 common_optimize_on_ldflags += [ "/LTCG" ] # Link-time code generation.
1280 } 1280 }
1281 } 1281 if (full_wpo_on_official) {
1282 if (full_wpo_on_official) { 1282 if (use_incremental_wpo) {
1283 if (use_incremental_wpo) { 1283 arflags = [ "/LTCG:INCREMENTAL" ]
1284 arflags = [ "/LTCG:INCREMENTAL" ] 1284 } else {
1285 } else { 1285 arflags = [ "/LTCG" ]
1286 arflags = [ "/LTCG" ] 1286 }
1287 } 1287 }
1288 } 1288 }
1289 } 1289 }
1290 } else { 1290 } else {
1291 common_optimize_on_cflags = [] 1291 common_optimize_on_cflags = []
1292 common_optimize_on_ldflags = [] 1292 common_optimize_on_ldflags = []
1293 1293
1294 if (is_android) { 1294 if (is_android) {
1295 # TODO(jdduke) Re-enable on mips after resolving linking 1295 # TODO(jdduke) Re-enable on mips after resolving linking
1296 # issues with libc++ (crbug.com/456380). 1296 # issues with libc++ (crbug.com/456380).
(...skipping 337 matching lines...) Expand 10 before | Expand all | Expand 10 after
1634 1634
1635 if (is_ios || is_mac) { 1635 if (is_ios || is_mac) {
1636 # On Mac and iOS, this enables support for ARC (automatic ref-counting). 1636 # On Mac and iOS, this enables support for ARC (automatic ref-counting).
1637 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. 1637 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html.
1638 config("enable_arc") { 1638 config("enable_arc") {
1639 common_flags = [ "-fobjc-arc" ] 1639 common_flags = [ "-fobjc-arc" ]
1640 cflags_objc = common_flags 1640 cflags_objc = common_flags
1641 cflags_objcc = common_flags 1641 cflags_objcc = common_flags
1642 } 1642 }
1643 } 1643 }
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