Skip to content

Commit 58c4e76

Browse files
vchuravyvtjnash
andauthored
Apply suggestions from code review
Co-authored-by: Jameson Nash <vtjnash@gmail.com>
1 parent 074f7e5 commit 58c4e76

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

deps/llvm.mk

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ else
377377
(cd $(LLVM_BARESRC_DIR) && \
378378
git fetch)
379379
([ ! -d $(LLVM_MONOSRC_DIR) ] && \
380-
git clone --local $(LLVM_BARESRC_DIR) $(LLVM_MONOSRC_DIR) ) || \
380+
git clone --dissociate --reference $(LLVM_BARESRC_DIR) $(LLVM_GIT_URL) $(LLVM_MONOSRC_DIR) ) || \
381381
(cd $(LLVM_MONOSRC_DIR) && \
382382
git pull --ff-only)
383383
ifneq ($(LLVM_GIT_VER),)
@@ -581,6 +581,7 @@ update-llvm:
581581
(cd $(LLVM_BARESRC_DIR) && \
582582
git fetch)
583583
(cd $(LLVM_MONOSRC_DIR) && \
584+
git fetch $(LLVM_BARESRC_DIR) +refs/remotes/*:refs/remotes/* && \
584585
git pull --ff-only)
585586
endif
586587
else # USE_BINARYBUILDER_LLVM

0 commit comments

Comments
 (0)