diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-10-28 03:05:09 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-10-28 04:12:42 +0900 |
| commit | 53e9dd6aa933c1a5b43da83a88d5e07bf27285bf (patch) | |
| tree | 75d23f52901368c2e9764df631d37b8eb7484723 /internal/rosa/package/go.az | |
| parent | 7e3ba55cdc4d4a7c19deb65879e8abbb12a8e458 (diff) | |
internal/rosa: do not hard code prefix
This allows the prefix to be changed, at runtime if needed.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/package/go.az')
| -rw-r--r-- | internal/rosa/package/go.az | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/internal/rosa/package/go.az b/internal/rosa/package/go.az index 8b5abed4..4f284341 100644 --- a/internal/rosa/package/go.az +++ b/internal/rosa/package/go.az @@ -13,7 +13,7 @@ package go { env = [ "CC=cc", "GOCACHE=/tmp/gocache", - "GOROOT_BOOTSTRAP=/system/go", + "GOROOT_BOOTSTRAP="+prefix+"/go", "TMPDIR=/dev/shm/go", ]; @@ -22,13 +22,13 @@ package go { exec = generic { chdir = false; build = ` -mkdir /work/system/ "${TMPDIR}" -cp -r . /work/system/go -cd /work/system/go/src/ +mkdir /work`+prefix+`/ "${TMPDIR}" +cp -r . /work`+prefix+`/go +cd /work`+prefix+`/go/src/ chmod -R +w .. sed -i \ - 's,/lib/ld-musl-`+llvmArch+`.so.1,/system/bin/linker,' \ + 's,/lib/ld-musl-`+llvmArch+`.so.1,`+prefix+`/bin/linker,' \ cmd/link/internal/`+arch+`/obj.go rm \ @@ -45,11 +45,11 @@ set -u install = ` ../bin/go tool dist banner # print build info -mkdir /work/system/bin +mkdir /work`+prefix+`/bin ln -s \ ../go/bin/go \ ../go/bin/gofmt \ - /work/system/bin + /work`+prefix+`/bin `; }; |
