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/rsync.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/rsync.go')
| -rw-r--r-- | internal/rosa/rsync.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/rosa/rsync.go b/internal/rosa/rsync.go index 6f5f34bc..c43244ba 100644 --- a/internal/rosa/rsync.go +++ b/internal/rosa/rsync.go @@ -2,14 +2,13 @@ package rosa import "hakurei.app/internal/pkg" -// NewRsync returns a [pkg.Artifact] containing an installation of rsync. -func (t Toolchain) NewRsync() pkg.Artifact { +func (t Toolchain) newRsync() pkg.Artifact { const ( version = "3.4.1" checksum = "VBlTsBWd9z3r2-ex7GkWeWxkUc5OrlgDzikAC0pK7ufTjAJ0MbmC_N04oSVTGPiv" ) return t.New("rsync-"+version, []pkg.Artifact{ - t.NewMake(), + t.Load(Make), }, nil, nil, ` cd "$(mktemp -d)" /usr/src/rsync/configure --prefix=/system \ @@ -27,3 +26,4 @@ make DESTDIR=/work install pkg.TarGzip, ))) } +func init() { artifactsF[Rsync] = Toolchain.newRsync } |
