File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -209,7 +209,7 @@ vet: $(GO)
209209 go vet ./...
210210
211211# vet is disabled until we fix errors in generated code
212- test : test-aot-runtime test-glj test-repl-wasm # vet
212+ test : test-aot-runtime test-glj test-repl-wasm test-repl-bsd # vet
213213 ($( MAKE) test-suite v=1 || $( MAKE) test-suite v=1) || $(MAKE ) test-suite v=1
214214
215215TEST-COMPARE-LOAD := $(shell \
@@ -230,6 +230,19 @@ test-aot-runtime: $(GO)
230230test-repl-wasm : $(GO )
231231 GOOS=js GOARCH=wasm CGO_ENABLED=0 go build ./pkg/repl
232232
233+ .PHONY : test-repl-bsd
234+ test-repl-bsd : $(GO )
235+ @set -e; \
236+ for target in \
237+ dragonfly/amd64 \
238+ freebsd/386 freebsd/amd64 freebsd/arm64 \
239+ netbsd/amd64 netbsd/arm64 \
240+ openbsd/amd64 openbsd/arm64; do \
241+ echo " Building pkg/repl for $$ target" ; \
242+ GOOS=$$ {target%/* } GOARCH=$$ {target#* /} CGO_ENABLED=0 \
243+ go build ./pkg/repl; \
244+ done
245+
233246.PHONY : test-aot test-suite-aot
234247test-aot : test-aot-runtime test-glj
235248 $(MAKE ) test-suite-aot
Original file line number Diff line number Diff line change 1+ //go:build dragonfly || freebsd || netbsd || openbsd
2+
3+ package repl
4+
5+ import "golang.org/x/sys/unix"
6+
7+ const (
8+ ioctlGetTermios = unix .TIOCGETA
9+ ioctlSetTermios = unix .TIOCSETA
10+ )
You can’t perform that action at this time.
0 commit comments