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>
This commit is contained in:
2026-02-05 18:27:42 +09:00
parent d77ad3bb6e
commit 9b751de078

View File

@@ -1,11 +1,6 @@
package rosa package rosa
import ( import "hakurei.app/internal/pkg"
"runtime"
"strconv"
"hakurei.app/internal/pkg"
)
func (t Toolchain) newM4() pkg.Artifact { func (t Toolchain) newM4() pkg.Artifact {
const ( const (
@@ -53,9 +48,10 @@ func (t Toolchain) newAutoconf() pkg.Artifact {
mustDecode(checksum), mustDecode(checksum),
pkg.TarGzip, pkg.TarGzip,
), &MakeAttr{ ), &MakeAttr{
Env: []string{ Make: []string{
"TESTSUITEFLAGS=" + strconv.Itoa(runtime.NumCPU()), `TESTSUITEFLAGS="-j$(nproc)"`,
}, },
Flag: TExclusive,
}, },
t.Load(M4), t.Load(M4),
t.Load(Perl), t.Load(Perl),
@@ -109,8 +105,8 @@ func (t Toolchain) newLibtool() pkg.Artifact {
mustDecode(checksum), mustDecode(checksum),
pkg.TarGzip, pkg.TarGzip,
), &MakeAttr{ ), &MakeAttr{
Env: []string{ Make: []string{
"TESTSUITEFLAGS=" + strconv.Itoa(runtime.NumCPU()), `TESTSUITEFLAGS=32`,
}, },
}, },
t.Load(M4), t.Load(M4),