aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/mbf
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-05-01 03:42:14 +0900
committerOphestra <cat@gensokyo.uk>2026-05-01 03:42:48 +0900
commit445d95023b1d9d152417838c4edad54f7bf4efe3 (patch)
tree95ba56140b93cc3220472f16a6c9e699d8c5a83e /cmd/mbf
parentfc66f0bb47dd4634f81aa67bf8fc092945643520 (diff)
internal/rosa: global preset flags
These changes preset behaviour globally. Useful for ad hoc workarounds for development or bootstrapping on resource-constrained systems. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/mbf')
-rw-r--r--cmd/mbf/main.go19
1 files changed, 19 insertions, 0 deletions
diff --git a/cmd/mbf/main.go b/cmd/mbf/main.go
index 1a986ca7..68d418b5 100644
--- a/cmd/mbf/main.go
+++ b/cmd/mbf/main.go
@@ -63,6 +63,8 @@ func main() {
var (
flagQuiet bool
+ flagCheck bool
+ flagLTO bool
addr net.UnixAddr
)
@@ -80,12 +82,29 @@ func main() {
addr.Name = filepath.Join(cm.base, "daemon")
}
+ var flags int
+ if !flagCheck {
+ flags |= rosa.OptSkipCheck
+ }
+ if !flagLTO {
+ flags |= rosa.OptLLVMNoLTO
+ }
+ rosa.DropCaches(flags)
+
return nil
}).Flag(
&flagQuiet,
"q", command.BoolFlag(false),
"Do not print cure messages",
).Flag(
+ &flagLTO,
+ "lto", command.BoolFlag(false),
+ "Enable LTO in stage2 and stage3 LLVM toolchains",
+ ).Flag(
+ &flagCheck,
+ "check", command.BoolFlag(true),
+ "Run test suites",
+ ).Flag(
&cm.cures,
"cures", command.IntFlag(0),
"Maximum number of dependencies to cure at any given time",