diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-08-25 13:57:38 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-08-25 14:00:42 +0900 |
| commit | ac7abbbe3fa2eea01defb670abc7dc1dc336cf21 (patch) | |
| tree | cb8c451110acbd394667e94ae66c53dc422398b8 /internal/rosa/llvm.go | |
| parent | 7ee5d5368de5494350e7766a595c2bdc8f01ce80 (diff) | |
internal/rosa: read-only access to built-ins
This removes potential footguns caused by mutable builtins without requiring unnecessary clones.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/llvm.go')
| -rw-r--r-- | internal/rosa/llvm.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/rosa/llvm.go b/internal/rosa/llvm.go index 8a844268..85f4292d 100644 --- a/internal/rosa/llvm.go +++ b/internal/rosa/llvm.go @@ -48,7 +48,7 @@ func litArgs(verbose bool, skipChecks ...string) string { } func init() { - native.MustRegister("llvm", func(t Toolchain) (*Metadata, pkg.Artifact) { + builtin.MustRegister("llvm", func(t Toolchain) (*Metadata, pkg.Artifact) { meta := Metadata{ Name: "llvm", Description: "a collection of modular and reusable compiler and toolchain technologies", @@ -168,7 +168,7 @@ func init() { ) } - if t.opts&OptLLVMNoLTO == 0 { + if t.opts&OptToolchainLTO != 0 { cache = append(cache, []KV{ // very expensive {"LLVM_ENABLE_LTO", "Thin"}, |
