diff options
Diffstat (limited to 'internal/rosa/llvm.go')
| -rw-r--r-- | internal/rosa/llvm.go | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/internal/rosa/llvm.go b/internal/rosa/llvm.go index a7930e1b..6177a716 100644 --- a/internal/rosa/llvm.go +++ b/internal/rosa/llvm.go @@ -90,10 +90,14 @@ func (t Toolchain) newLLVM() (pkg.Artifact, string) { skipChecks[i] = s } - cache = append(cache, []KV{ - // very expensive - {"LLVM_ENABLE_LTO", "Thin"}, + if presetOpts&OptLLVMNoLTO == 0 { + cache = append(cache, []KV{ + // very expensive + {"LLVM_ENABLE_LTO", "Thin"}, + }...) + } + cache = append(cache, []KV{ // symbols: clock_gettime, mallopt {"COMPILER_RT_INCLUDE_TESTS", "OFF"}, |
