build: adjust ThinLTO's memory usage for non-Android
In the linked bug, we discovered that clean Chrome links with ThinLTO enabled consume quite a bit of memory. In my measurements, Chrome OS x64 links take around 49GB, and a standard Linux ThinLTO link takes around 46GB. Build command: $ /usr/bin/time -v ninja chrome [snip] Maximum resident set size (kbytes): 46337504 [snip] $ cat args.gn target_os = "linux" target_cpu = "x64" use_goma = true is_official_build = true is_chrome_branded = true clang_use_default_sample_profile = true use_thin_lto = true (the last two args should be redundant in this case) Measured similarly, Android's build takes 8-9GB on ARM, so it gets to stay at 10GB. Bug: 988364 Change-Id: Ia1bbf6b441dcb9219a37842060e72eebe7ec687e Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1755189Reviewed-by:Peter Collingbourne <pcc@chromium.org> Reviewed-by:
Nico Weber <thakis@chromium.org> Commit-Queue: George Burgess <gbiv@chromium.org> Cr-Commit-Position: refs/heads/master@{#689090}
Showing
Please register or sign in to comment