From 445d95023b1d9d152417838c4edad54f7bf4efe3 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Fri, 1 May 2026 03:42:14 +0900 Subject: internal/rosa: global preset flags These changes preset behaviour globally. Useful for ad hoc workarounds for development or bootstrapping on resource-constrained systems. Signed-off-by: Ophestra --- internal/rosa/llvm.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'internal/rosa/llvm.go') 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"}, -- cgit v1.3.1