forked from ALHP/ALHP.GO
use yaml bool
This commit is contained in:
4
utils.go
4
utils.go
@@ -78,7 +78,7 @@ type Conf struct {
|
|||||||
Build struct {
|
Build struct {
|
||||||
Worker int
|
Worker int
|
||||||
Makej int
|
Makej int
|
||||||
Checks string
|
Checks bool
|
||||||
}
|
}
|
||||||
Logging struct {
|
Logging struct {
|
||||||
Level string
|
Level string
|
||||||
@@ -692,7 +692,7 @@ func setupMakepkg(march string) error {
|
|||||||
makepkgStr := string(t)
|
makepkgStr := string(t)
|
||||||
|
|
||||||
makepkgStr = strings.ReplaceAll(makepkgStr, "-mtune=generic", "")
|
makepkgStr = strings.ReplaceAll(makepkgStr, "-mtune=generic", "")
|
||||||
if strings.ToLower(conf.Build.Checks) != "true" {
|
if conf.Build.Checks {
|
||||||
makepkgStr = strings.ReplaceAll(makepkgStr, " check ", " !check ")
|
makepkgStr = strings.ReplaceAll(makepkgStr, " check ", " !check ")
|
||||||
}
|
}
|
||||||
makepkgStr = strings.ReplaceAll(makepkgStr, " color ", " !color ")
|
makepkgStr = strings.ReplaceAll(makepkgStr, " color ", " !color ")
|
||||||
|
Reference in New Issue
Block a user