File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 1
1
2
2
# aliases
3
- all : tgo
4
- tgo : build/tgo
3
+ all : tinygo
4
+ tinygo : build/tinygo
5
5
6
- .PHONY : all tgo run-test run-blinky run-blinky2 clean fmt gen-device gen-device-nrf gen-device-avr
6
+ .PHONY : all tinygo run-test run-blinky run-blinky2 clean fmt gen-device gen-device-nrf gen-device-avr
7
7
8
8
TARGET ?= unix
9
9
@@ -96,17 +96,17 @@ gen-device-stm32:
96
96
go fmt ./src/device/stm32
97
97
98
98
# Build the Go compiler.
99
- build/tgo : * .go compiler/ * .go interp/ * .go loader/ * .go ir/ * .go
99
+ tinygo :
100
100
@mkdir -p build
101
- go build -o build/tgo -i .
101
+ go build -o build/tinygo .
102
102
103
103
# Binary that can run on the host.
104
- build/% : src/examples/% src/examples/% /* .go build/tgo src/runtime/* .go
105
- ./build/tgo build $(TGOFLAGS ) -size=short -o $@ $(subst src/,,$< )
104
+ build/% : src/examples/% src/examples/% /* .go build/tinygo src/runtime/* .go
105
+ ./build/tinygo build $(TGOFLAGS ) -size=short -o $@ $(subst src/,,$< )
106
106
107
107
# ELF file that can run on a microcontroller.
108
- build/% .elf : src/examples/% src/examples/% /* .go build/tgo src/runtime/* .go
109
- ./build/tgo build $(TGOFLAGS ) -size=short -o $@ $(subst src/,,$< )
108
+ build/% .elf : src/examples/% src/examples/% /* .go build/tinygo src/runtime/* .go
109
+ ./build/tinygo build $(TGOFLAGS ) -size=short -o $@ $(subst src/,,$< )
110
110
111
111
# Convert executable to Intel hex file (for flashing).
112
112
build/% .hex : build/% .elf
Original file line number Diff line number Diff line change 4
4
"unsafe"
5
5
)
6
6
7
- const Compiler = "tgo "
7
+ const Compiler = "tinygo "
8
8
9
9
// The compiler will fill this with calls to the initialization function of each
10
10
// package.
You can’t perform that action at this time.
0 commit comments