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

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

Issue 2677593002: Turn off LTO again for Official Win/Clang LLD builds (Closed)
Patch Set: Created 3 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 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 1472 matching lines...) Expand 10 before | Expand all | Expand 10 after
1483 if (!is_clang) { 1483 if (!is_clang) {
1484 cflags += [ 1484 cflags += [
1485 "/GL", # Whole program optimization. 1485 "/GL", # Whole program optimization.
1486 1486
1487 # Disable Warning 4702 ("Unreachable code") for the WPO/PGO builds. 1487 # Disable Warning 4702 ("Unreachable code") for the WPO/PGO builds.
1488 # Probably anything that this would catch that wouldn't be caught 1488 # Probably anything that this would catch that wouldn't be caught
1489 # in a normal build isn't going to actually be a bug, so the 1489 # in a normal build isn't going to actually be a bug, so the
1490 # incremental value of C4702 for PGO builds is likely very small. 1490 # incremental value of C4702 for PGO builds is likely very small.
1491 "/wd4702", 1491 "/wd4702",
1492 ] 1492 ]
1493 } else if (is_clang && use_lld) {
1494 cflags += [ "-flto" ] # Link-time optimization (whole program optimiz ation).
1495 } 1493 }
1494 # TODO(crbug.com/598772): Enable -flto for Clang.
1496 } 1495 }
1497 } else if (optimize_for_fuzzing) { 1496 } else if (optimize_for_fuzzing) {
1498 cflags = [ "-O1" ] + common_optimize_on_cflags 1497 cflags = [ "-O1" ] + common_optimize_on_cflags
1499 } else { 1498 } else {
1500 cflags = [ "-O2" ] + common_optimize_on_cflags 1499 cflags = [ "-O2" ] + common_optimize_on_cflags
1501 } 1500 }
1502 } 1501 }
1503 } 1502 }
1504 1503
1505 # This config can be used to override the default settings for per-component 1504 # This config can be used to override the default settings for per-component
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
1695 1694
1696 if (is_ios || is_mac) { 1695 if (is_ios || is_mac) {
1697 # On Mac and iOS, this enables support for ARC (automatic ref-counting). 1696 # On Mac and iOS, this enables support for ARC (automatic ref-counting).
1698 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. 1697 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html.
1699 config("enable_arc") { 1698 config("enable_arc") {
1700 common_flags = [ "-fobjc-arc" ] 1699 common_flags = [ "-fobjc-arc" ]
1701 cflags_objc = common_flags 1700 cflags_objc = common_flags
1702 cflags_objcc = common_flags 1701 cflags_objcc = common_flags
1703 } 1702 }
1704 } 1703 }
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