diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-01-25 01:32:21 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-01-25 01:43:18 +0900 |
| commit | 20790af71ec9a69a462ecaaa7fc308e3b685383d (patch) | |
| tree | e7cfdd8fec51c5dc37db88ad887c07dee947b600 /internal/rosa/llvm.go | |
| parent | 43b8a40fc0e8d99bf29531d33f1f57d0c6e9df5e (diff) | |
internal/rosa: lazy initialise all artifacts
This improves performance, though not as drastically as lazy initialising llvm.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/llvm.go')
| -rw-r--r-- | internal/rosa/llvm.go | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/internal/rosa/llvm.go b/internal/rosa/llvm.go index 3144c4bd..c990e538 100644 --- a/internal/rosa/llvm.go +++ b/internal/rosa/llvm.go @@ -188,7 +188,7 @@ cp -r /system/include /usr/include && rm -rf /system/include if len(patches) > 1 { source = t.New( "llvmorg-patched", stage3Concat(t, []pkg.Artifact{}, - t.NewPatch(), + t.Load(Patch), ), nil, nil, ` cp -r /usr/src/llvmorg/. /work/. chmod -R +w /work && cd /work @@ -201,14 +201,14 @@ cat /usr/src/llvm-patches/* | patch -p 1 Cache: slices.Concat(cache, attr.cmake), Append: cmakeAppend, Extra: stage3Concat(t, attr.extra, - t.NewLibffi(), - t.NewPython(), - t.NewPerl(), - t.NewDiffutils(), - t.NewBash(), - t.NewCoreutils(), + t.Load(Libffi), + t.Load(Python), + t.Load(Perl), + t.Load(Diffutils), + t.Load(Bash), + t.Load(Coreutils), - t.NewKernelHeaders(), + t.Load(KernelHeaders), ), Prefix: attr.prefix, @@ -327,7 +327,7 @@ ln -s \ musl, compilerRT, runtimes, - t.NewGit(), + t.Load(Git), }, script: ` ln -s clang /work/system/bin/cc |
