aboutsummaryrefslogtreecommitdiffhomepage
path: root/cmd/mbf/main.go
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2026-10-01 22:24:09 +0900
committerOphestra <cat@gensokyo.uk>2026-10-01 22:24:09 +0900
commit4b19686109b0962ea68dfe58feafffe3bac9c202 (patch)
tree706d986f74c012eb414f03c268bec057b3c5ba86 /cmd/mbf/main.go
parent8fea10f7d05648900ce1d9abb899402298382e7d (diff)
cmd/dist: optionally build with race instrument
This is mostly useful for the integration test suites. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/mbf/main.go')
-rw-r--r--cmd/mbf/main.go23
1 files changed, 23 insertions, 0 deletions
diff --git a/cmd/mbf/main.go b/cmd/mbf/main.go
index 5dd4e8a0..dd5ee624 100644
--- a/cmd/mbf/main.go
+++ b/cmd/mbf/main.go
@@ -548,6 +548,29 @@ func main() {
"Write the resulting distribution to the named directory",
)
}
+ {
+ var flagOutput string
+ _ci.NewCommand(
+ "race",
+ "Request distribution tarball (race) for the specified source directory",
+ func(args []string) error {
+ if len(args) != 2 {
+ return errors.New("race requires 2 arguments")
+ }
+
+ return ci.Path(cm.base).MakeDistRace(
+ ctx,
+ os.Stdout,
+ flagOutput,
+ args[0], args[1],
+ )
+ },
+ ).Flag(
+ &flagOutput,
+ "o", command.StringFlag("."),
+ "Write the resulting distribution to the named directory",
+ )
+ }
c.NewCommand(
"keygen",