mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-03 10:37:46 +00:00
Makefile: check whether LLVM was build before making a static binary
This commit is contained in:
committed by
Ron Evans
parent
d2b3a5486c
commit
0d2a3ce532
@@ -85,6 +85,7 @@ build/tinygo:
|
||||
go build -o build/tinygo .
|
||||
|
||||
static:
|
||||
@if [ ! -f llvm-build/bin/llvm-config ]; then echo "Fetch and build LLVM first by running:\n make llvm-source\n make llvm-build"; exit 1; fi
|
||||
CGO_CPPFLAGS="$(CGO_CPPFLAGS)" CGO_CXXFLAGS="$(CGO_CXXFLAGS)" CGO_LDFLAGS="$(CGO_LDFLAGS)" go build -o build/tinygo -tags byollvm .
|
||||
|
||||
static-test:
|
||||
|
||||
Reference in New Issue
Block a user