Skip to content

Commit

Permalink
shorter: use go1.16 in Makefile to build eggos kernel of shorter
Browse files Browse the repository at this point in the history
Note: eggos currently requires Go 1.16.

See upstream issue for Go 1.17 support (ref: icexin/eggos#100).
  • Loading branch information
mewmew committed Feb 10, 2022
1 parent e8cf568 commit d9797a4
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
# DEPENDENCIES:
#
# Install Go 1.16:
#
# go get golang.org/dl/go1.16
# go1.16 download

all: 7i.elf

7i.elf:
egg build -o $@
env GOROOT="`go1.16 env GOROOT`" egg build -o $@

run: 7i.elf
egg run -p 8081:8080 7i.elf
env GOROOT="`go1.16 env GOROOT`" egg run -p 8081:8080 7i.elf

clean:
$(RM) 7i.elf
Expand Down

0 comments on commit d9797a4

Please sign in to comment.