repos / gbc

GBC - Go B Compiler
git clone https://github.com/xplshn/gbc.git

commit
ee0c8ea
parent
94a9b5a
author
xplshn
date
2025-08-24 02:27:23 +0000 UTC
add --target/-t flag default

Signed-off-by: xplshn <[email protected]>
1 files changed,  +1, -1
M cmd/gbc/main.go
+1, -1
1@@ -75,7 +75,7 @@ func main() {
2 	fs := app.FlagSet
3 	fs.String(&outFile, "output", "o", "a.out", "Place the output into <file>", "file")
4 	fs.String(&std, "std", "", "Bx", "Specify language standard (B, Bx)", "std")
5-	fs.String(&target, "target", "t", "", "Set the backend and target ABI (e.g., llvm/x86_64-linux-gnu)", "backend/target")
6+	fs.String(&target, "target", "t", "qbe", "Set the backend and target ABI (e.g., llvm/x86_64-linux-gnu)", "backend/target")
7 	fs.List(&linkerArgs, "linker-arg", "", []string{}, "Pass an argument to the linker", "arg")
8 	fs.List(&compilerArgs, "compiler-arg", "", []string{}, "Pass a compiler-specific argument (e.g., -C linker_args='-s')", "arg")
9 	fs.List(&userIncludePaths, "include", "", []string{}, "Add a directory to the include path", "path")