diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-02-05 18:27:42 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-02-05 18:29:47 +0900 |
| commit | 9b751de07866e1456cbf7f3dbdef1322ef51e31d (patch) | |
| tree | 83961cf6f990e3eb2709990b191d07b3325d4194 | |
| parent | d77ad3bb6ed27a30df3d666aacb1477dced912ed (diff) | |
internal/rosa/gnu: fix test suite flags
This sets the correct flag and also avoids changing ident per system.
Signed-off-by: Ophestra <cat@gensokyo.uk>
| -rw-r--r-- | internal/rosa/gnu.go | 16 |
1 files changed, 6 insertions, 10 deletions
diff --git a/internal/rosa/gnu.go b/internal/rosa/gnu.go index ed127b09..71f4b7d4 100644 --- a/internal/rosa/gnu.go +++ b/internal/rosa/gnu.go @@ -1,11 +1,6 @@ package rosa -import ( - "runtime" - "strconv" - - "hakurei.app/internal/pkg" -) +import "hakurei.app/internal/pkg" func (t Toolchain) newM4() pkg.Artifact { const ( @@ -53,9 +48,10 @@ func (t Toolchain) newAutoconf() pkg.Artifact { mustDecode(checksum), pkg.TarGzip, ), &MakeAttr{ - Env: []string{ - "TESTSUITEFLAGS=" + strconv.Itoa(runtime.NumCPU()), + Make: []string{ + `TESTSUITEFLAGS="-j$(nproc)"`, }, + Flag: TExclusive, }, t.Load(M4), t.Load(Perl), @@ -109,8 +105,8 @@ func (t Toolchain) newLibtool() pkg.Artifact { mustDecode(checksum), pkg.TarGzip, ), &MakeAttr{ - Env: []string{ - "TESTSUITEFLAGS=" + strconv.Itoa(runtime.NumCPU()), + Make: []string{ + `TESTSUITEFLAGS=32`, }, }, t.Load(M4), |
