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

Unified Diff: build/toolchain/concurrent_links.gni

Issue 2380213002: Increase link concurrency for ThinLTO. (Closed)
Patch Set: add a comment 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/toolchain/concurrent_links.gni
diff --git a/build/toolchain/concurrent_links.gni b/build/toolchain/concurrent_links.gni
index 163fc1b1aa97c32e99467fa5267065af6b3b2fcb..afce336781c15d18065a58cee511594fd066663d 100644
--- a/build/toolchain/concurrent_links.gni
+++ b/build/toolchain/concurrent_links.gni
@@ -21,10 +21,18 @@ declare_args() {
if (concurrent_links == -1) {
if (allow_posix_link_time_opt || is_cfi) {
- _args = [
- "--mem_per_link_gb=26",
- "--reserve_mem_gb=20",
- ]
+ if (use_thin_lto) {
+ _args = [
+ "--mem_per_link_gb=10",
+ "--reserve_mem_gb=10",
+ ]
+ } else {
+ # Full LTO, needs lots of RAM
+ _args = [
+ "--mem_per_link_gb=26",
+ "--reserve_mem_gb=20",
+ ]
+ }
} else if (is_win) {
_args = [ "--mem_per_link_gb=5" ]
} else if (is_mac) {
« 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