forked from ALHP/ALHP.GO
moved check option to config
This commit is contained in:
@@ -48,6 +48,7 @@ status:
|
||||
build:
|
||||
worker: 4
|
||||
makej: 8
|
||||
checks: true
|
||||
|
||||
logging:
|
||||
level: INFO
|
3
utils.go
3
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", "")
|
||||
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)+"\"")
|
||||
|
Reference in New Issue
Block a user