diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-05-07 20:29:31 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-05-07 20:29:31 +0900 |
| commit | 145d03b36658d8716d02b0e6084b646131821728 (patch) | |
| tree | 30f068991e1b0b7e38c72801c9cd363628657c9c /cmd/mbf/main.go | |
| parent | 2886228d40a765c809792d9e3a181d7461018855 (diff) | |
cmd/mbf: optional emulated target architecture
This enables transparent cross-compilation without breaking purity.
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'cmd/mbf/main.go')
| -rw-r--r-- | cmd/mbf/main.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmd/mbf/main.go b/cmd/mbf/main.go index 65d563be..a5f1807a 100644 --- a/cmd/mbf/main.go +++ b/cmd/mbf/main.go @@ -101,6 +101,10 @@ func main() { "q", command.BoolFlag(false), "Do not print cure messages", ).Flag( + &cm.arch, + "arch", command.StringFlag(runtime.GOARCH), + "Target architecture", + ).Flag( &flagLTO, "lto", command.BoolFlag(false), "Enable LTO in stage2 and stage3 LLVM toolchains", |
