aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/rosa/gnu.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-03-01 12:11:41 +0900
committerOphestra <cat@gensokyo.uk>2026-03-01 14:41:34 +0900
commit51d3df2419e26f15d780c98629a357473855ebd4 (patch)
treee5c0e3810156d3f706ed732b67bd5e12b3dfa8f5 /internal/rosa/gnu.go
parent1d0fcf3a75bbdbeac24c34f5d55cb5ba347f1782 (diff)
internal/rosa/make: split build and check
Doing these together breaks far too many buggy makefiles. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/gnu.go')
-rw-r--r--internal/rosa/gnu.go23
1 files changed, 9 insertions, 14 deletions
diff --git a/internal/rosa/gnu.go b/internal/rosa/gnu.go
index 75f4b385..a110dcef 100644
--- a/internal/rosa/gnu.go
+++ b/internal/rosa/gnu.go
@@ -65,8 +65,9 @@ func (t Toolchain) newAutoconf() pkg.Artifact {
mustDecode(checksum),
pkg.TarGzip,
), &MakeAttr{
- Make: []string{
+ Check: []string{
`TESTSUITEFLAGS="-j$(nproc)"`,
+ "check",
},
Flag: TExclusive,
},
@@ -122,8 +123,9 @@ func (t Toolchain) newLibtool() pkg.Artifact {
mustDecode(checksum),
pkg.TarGzip,
), &MakeAttr{
- Make: []string{
- `TESTSUITEFLAGS=32`,
+ Check: []string{
+ `TESTSUITEFLAGS="-j$(nproc)"`,
+ "check",
},
},
t.Load(M4),
@@ -442,8 +444,9 @@ func (t Toolchain) newTar() pkg.Artifact {
{"without-posix-acls"},
{"without-xattrs"},
},
- Make: []string{
+ Check: []string{
`TESTSUITEFLAGS="-j$(nproc)"`,
+ "check",
},
},
t.Load(Diffutils),
@@ -464,11 +467,7 @@ func (t Toolchain) newBinutils() pkg.Artifact {
nil, "https://ftpmirror.gnu.org/gnu/binutils/binutils-"+version+".tar.bz2",
mustDecode(checksum),
pkg.TarBzip2,
- ), &MakeAttr{
- ScriptConfigured: `
-make "-j$(nproc)"
-`,
- },
+ ), nil,
t.Load(Bash),
)
}
@@ -484,11 +483,7 @@ func (t Toolchain) newGMP() pkg.Artifact {
"gmp-"+version+".tar.bz2",
mustDecode(checksum),
pkg.TarBzip2,
- ), &MakeAttr{
- ScriptConfigured: `
-make "-j$(nproc)"
-`,
- },
+ ), nil,
t.Load(M4),
)
}