summaryrefslogtreecommitdiff
path: root/java/java_test.go
diff options
context:
space:
mode:
author Yi Kong <yikong@google.com> 2018-02-16 20:36:16 +0800
committer Yi Kong <yikong@google.com> 2018-03-12 16:54:58 -0700
commit8aeaa7158a0f8bb49443f8991e113f191f8e6d3b (patch)
treec03c4a2d5a11cfae732f6bed93f832970ab04fc6 /java/java_test.go
parenta052599bb6d00d73efb23a8ef55d145b6cf95a2c (diff)
Add opt-in option to turn on ThinLTO caching
Allow developers to enable ThinLTO caching on their local build by setting USE_THINLTO_CACHE environment variable. This significantly speeds up incremental ThinLTO builds by caching intermediate results. An incremental ART build (by `touch compiler/compiler.cc`) reduced from 01:32 to 00:45. We put the cache under out/soong/thinlto-cache as the cache can be valid across different targets, and allows us to set a global cache pruning policy. The current cache policy is sufficient for current list of ThinLTO-enabled projects, we can tune it up/down in the future. Test: USE_THINLTO_CACHE=true m Bug: 62839002 Change-Id: I4838fe833a1d8fbc73d743da6d19e3698dc89600
Diffstat (limited to 'java/java_test.go')
0 files changed, 0 insertions, 0 deletions