From ca7cbe72eeb26badf0d36ff9679b6c9d35a36789 Mon Sep 17 00:00:00 2001 From: Giovanni Harting <539@idlegandalf.com> Date: Sun, 21 Nov 2021 19:30:48 +0100 Subject: [PATCH] moved check option to config --- config_dist.yaml | 1 + utils.go | 5 ++++- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/config_dist.yaml b/config_dist.yaml index 8bd3a03..3189049 100644 --- a/config_dist.yaml +++ b/config_dist.yaml @@ -48,6 +48,7 @@ status: build: worker: 4 makej: 8 + checks: true logging: level: INFO \ No newline at end of file diff --git a/utils.go b/utils.go index 2666faf..3083c00 100644 --- a/utils.go +++ b/utils.go @@ -78,6 +78,7 @@ type Conf struct { Build struct { Worker int Makej int + Checks string } Logging struct { Level string @@ -691,7 +692,9 @@ func setupMakepkg(march string) error { makepkgStr := string(t) makepkgStr = strings.ReplaceAll(makepkgStr, "-mtune=generic", "") - makepkgStr = strings.ReplaceAll(makepkgStr, " check ", " !check ") + if conf.Build.Checks != "true" { + makepkgStr = strings.ReplaceAll(makepkgStr, " check ", " !check ") + } makepkgStr = strings.ReplaceAll(makepkgStr, " color ", " !color ") makepkgStr = strings.ReplaceAll(makepkgStr, "-O2", "-O3") makepkgStr = strings.ReplaceAll(makepkgStr, "#MAKEFLAGS=\"-j2\"", "MAKEFLAGS=\"-j"+strconv.Itoa(conf.Build.Makej)+"\"")