diff --git a/Makefile b/Makefile index 1c6d8c8f..7fa1c332 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,7 @@ tgo: build/tgo .PHONY: all tgo run-hello run-blinky flash-blinky clean gen-device gen-device-nrf # Custom LLVM toolchain. -LLVM = +LLVM := $(shell go env GOPATH)/src/llvm.org/llvm/bindings/go/llvm/workdir/llvm_build/bin/ LINK = $(LLVM)llvm-link LLC = $(LLVM)llc