There was an error while loading. Please reload this page.
1 parent 7f1f99b commit 706ace0Copy full SHA for 706ace0
1 file changed
make/llvm.mk
@@ -83,11 +83,13 @@ llvm-source: ## Get or update LLVM sources
83
git init $(LLVM_PROJECTDIR); \
84
fi
85
cd $(LLVM_PROJECTDIR) && \
86
- if ! git remote get-url origin >/dev/null 2>&1; then \
87
- git remote add origin https://github.com/tinygo-org/llvm-project; \
+ if ! git cat-file -e "$(LLVM_REVISION)^{commit}" 2>/dev/null; then \
+ if ! git remote get-url origin >/dev/null 2>&1; then \
88
+ git remote add origin https://github.com/tinygo-org/llvm-project; \
89
+ fi && \
90
+ git fetch --depth=1 origin $(LLVM_REVISION); \
91
fi && \
- git fetch --depth=1 origin $(LLVM_REVISION) && \
- git checkout FETCH_HEAD
92
+ git checkout $(LLVM_REVISION)
93
94
# Configure LLVM.
95
TINYGO_SOURCE_DIR=$(shell pwd)
0 commit comments