diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-05-01 03:42:14 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-05-01 03:42:48 +0900 |
| commit | 445d95023b1d9d152417838c4edad54f7bf4efe3 (patch) | |
| tree | 95ba56140b93cc3220472f16a6c9e699d8c5a83e /internal/rosa/llvm.go | |
| parent | fc66f0bb47dd4634f81aa67bf8fc092945643520 (diff) | |
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 <cat@gensokyo.uk>
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"}, |
