internal/rosa: lazy initialise llvm

This significantly improves performance.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-01-25 00:29:46 +09:00
parent 87c3059214
commit 43b8a40fc0
2 changed files with 27 additions and 7 deletions

View File

@@ -114,6 +114,10 @@ const (
// Std denotes the standard Rosa OS toolchain.
Std
// _toolchainEnd is the total number of toolchains available and does not
// denote a valid toolchain.
_toolchainEnd
)
// stage3Concat concatenates s and values. If the current toolchain is