mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-13 15:33:40 +00:00
compiler: improve command line argument parsing
To get more compatibility with the go command, implement a similar command line interface (with "tinygo build <package>" etc.). Other than that, an all-round cleanup of command parsing.
This commit is contained in:
@@ -96,7 +96,7 @@ build/tgo: *.go
|
||||
|
||||
# Build IR with the Go compiler.
|
||||
build/%.o: src/examples/% src/examples/%/*.go build/tgo src/runtime/*.go build/runtime-$(TARGET)-combined.bc
|
||||
./build/tgo $(TGOFLAGS) -runtime build/runtime-$(TARGET)-combined.bc -o $@ $(subst src/,,$<)
|
||||
./build/tgo build $(TGOFLAGS) -runtime build/runtime-$(TARGET)-combined.bc -o $@ $(subst src/,,$<)
|
||||
|
||||
# Compile C sources for the runtime.
|
||||
build/%.bc: src/runtime/%.c src/runtime/*.h
|
||||
|
||||
Reference in New Issue
Block a user