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
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),