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

Unified Diff: build/toolchain/toolchain.gni

Issue 2333843002: Add use_thin_lto switch to start evaluating ThinLTO. (Closed)
Patch Set: merge -flto and -whole-program-vtables flags Created 4 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/toolchain/toolchain.gni
diff --git a/build/toolchain/toolchain.gni b/build/toolchain/toolchain.gni
index b7bfaff7897a11fdb73d25b4bcf882a6f2914218..6251fe05947f988ceff0163112de1da0f7c751a6 100644
--- a/build/toolchain/toolchain.gni
+++ b/build/toolchain/toolchain.gni
@@ -22,6 +22,12 @@ declare_args() {
# build/config/compiler/BUILD.gn).
use_lld = is_win && host_os != "win"
+ # If used with allow_posix_link_time_opt, it enables the experimental support
+ # of ThinLTO that links 3x-10x faster but (as of now) does not have all the
+ # important optimizations such us devirtualization implemented. See also
+ # http://blog.llvm.org/2016/06/thinlto-scalable-and-incremental-lto.html
+ use_thin_lto = false
+
# If this is set to true, or if LLVM_FORCE_HEAD_REVISION is set to 1
# in the environment, we use the revision in the llvm repo to determine
# the CLANG_REVISION to use, instead of the version hard-coded into
« no previous file with comments | « build/config/compiler/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698