Skip to content

Commit

Permalink
build,llvm: autodetect RC builds
Browse files Browse the repository at this point in the history
  • Loading branch information
vtjnash committed Sep 12, 2019
1 parent a812a77 commit 7362e4d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion deps/libuv.mk
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ $(LIBUV_BUILDDIR)/build-compiled: $(LIBUV_BUILDDIR)/build-configured

$(LIBUV_BUILDDIR)/build-checked: $(LIBUV_BUILDDIR)/build-compiled
ifeq ($(OS),$(BUILD_OS))
-$(MAKE) -C $(dir $@) check
$(MAKE) -C $(dir $@) check
endif
echo 1 > $@

Expand Down
5 changes: 5 additions & 0 deletions deps/llvm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,12 @@ ifeq ($(BUILD_LLDB),0)
LLVM_CMAKE += -DLLVM_TOOL_LLDB_BUILD=OFF
endif

ifeq (,$(findstring rc,$(LLVM_VER)))
LLVM_SRC_URL := http://releases.llvm.org/$(LLVM_VER)
else
LLVM_VER_SPLIT := $(subst rc, ,$(LLVM_VER))
LLVM_SRC_URL := https://prereleases.llvm.org/$(word 1,$(LLVM_VER_SPLIT))/rc$(word 2,$(LLVM_VER_SPLIT))
endif

ifneq ($(LLVM_CLANG_TAR),)
$(LLVM_CLANG_TAR): | $(SRCCACHE)
Expand Down

0 comments on commit 7362e4d

Please sign in to comment.