internal/rosa: remove global handles

These no longer serve any purpose.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-05-20 08:07:43 +09:00
parent 2e502ede6c
commit b482fd4abf
17 changed files with 120 additions and 125 deletions

View File

@@ -8,7 +8,25 @@ import (
"hakurei.app/internal/pkg"
)
// litArgs returns [LIT] arguments for optional verbosity and check skipping.
var (
llvmSource = H("llvm-project")
muslHeaders = H("musl-headers")
earlyCompilerRT = H("early-compiler-rt")
earlyRuntimes = H("early-runtimes")
musl = H("musl")
bash = H("bash")
gawk = H("gawk")
coreutils = H("coreutils")
diffutils = H("diffutils")
findutils = H("findutils")
zlib = H("zlib")
zstd = H("zstd")
kernelHeaders = H("kernel-headers")
)
// litArgs returns LIT arguments for optional verbosity and check skipping.
func litArgs(verbose bool, skipChecks ...string) string {
args := []string{"-sv"}
if verbose {
@@ -36,7 +54,7 @@ func init() {
Description: "early LLVM runtime: compiler-rt",
Dependencies: P{
Musl,
musl,
},
}
_meta, source := t.MustLoad(llvmSource)
@@ -91,7 +109,7 @@ ln -s \
Python,
muslHeaders,
KernelHeaders,
kernelHeaders,
)
})
@@ -146,10 +164,10 @@ ln -s \
},
Python,
Zlib,
Zstd,
zlib,
zstd,
earlyCompilerRT,
KernelHeaders,
kernelHeaders,
)
})
@@ -180,9 +198,9 @@ ln -s \
Website: "https://llvm.org",
Dependencies: P{
Zlib,
Zstd,
Musl,
zlib,
zstd,
musl,
},
}
_meta, source := t.MustLoad(llvmSource)
@@ -335,16 +353,16 @@ ninja ` + jobsFlagE + ` check-all
},
Python,
Perl,
Diffutils,
Bash,
Gawk,
Coreutils,
Findutils,
diffutils,
bash,
gawk,
coreutils,
findutils,
Zlib,
Zstd,
zlib,
zstd,
early,
KernelHeaders,
kernelHeaders,
)
})