fix windows cross compiling
This commit is contained in:
parent
9da46087e1
commit
faa0792e9c
4
make/Makefile.common
Normal file → Executable file
4
make/Makefile.common
Normal file → Executable file
@ -7,7 +7,7 @@ all: fmt vet test MovieNight static/main.wasm settings.json
|
||||
server: ServerMovieNight static/main.wasm
|
||||
|
||||
ServerMovieNight: *.go common/*.go
|
||||
GOOS=${GOOS} GOARCH=${ARCH} go$(GO_VERSION) build -o MovieNight $(TAGS)
|
||||
GOOS=${TARGET} GOARCH=${ARCH} go$(GO_VERSION) build -o MovieNight $(TAGS)
|
||||
|
||||
setdev:
|
||||
$(eval export TAGS=-tags "dev")
|
||||
@ -15,7 +15,7 @@ setdev:
|
||||
dev: setdev all
|
||||
|
||||
MovieNight: *.go common/*.go
|
||||
GOOS=${GOOS} GOARCH=${ARCH} go$(GO_VERSION) build -o MovieNight${EXT} $(TAGS)
|
||||
GOOS=${TARGET} GOARCH=${ARCH} go$(GO_VERSION) build -o MovieNight${EXT} $(TAGS)
|
||||
|
||||
static/js/wasm_exec.js:
|
||||
cp $$(go$(GO_VERSION) env GOROOT)/misc/wasm/wasm_exec.js $@
|
||||
|
Loading…
Reference in New Issue
Block a user