Build policy controller with lto=thin (#10495)

We currently enable "fat" link-time optimization. This substantially
slows down the build times for the policy controller, especialy in CI.

This change upates the release profile to use "thin" LTO. Locally, this
reduces binary compilation time from 120.2 to 34s.
This commit is contained in:
Oliver Gould 2023-03-10 13:52:20 -08:00 committed by GitHub
parent 3ae3890593
commit 1900a7f48c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -10,4 +10,4 @@ members = [
]
[profile.release]
lto = true
lto = "thin"