Skip to content

Commit

Permalink
Download Polly when building with USE_POLLY=1
Browse files Browse the repository at this point in the history
  • Loading branch information
MatthiasJReisinger committed May 24, 2016
1 parent fd5554e commit 9ca3267
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions deps/llvm.mk
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,22 @@ LLVM_GIT_URL_COMPILER_RT ?= $(LLVM_GIT_URL_BASE)/compiler-rt.git
LLVM_GIT_URL_LLDB ?= $(LLVM_GIT_URL_BASE)/lldb.git
LLVM_GIT_URL_LIBCXX ?= $(LLVM_GIT_URL_BASE)/libcxx.git
LLVM_GIT_URL_LIBCXXABI ?= $(LLVM_GIT_URL_BASE)/libcxxabi.git
LLVM_GIT_URL_POLLY ?= $(LLVM_GIT_URL_BASE)/polly.git

ifeq ($(BUILD_LLDB), 1)
BUILD_LLVM_CLANG := 1
# because it's a build requirement
endif

ifeq ($(USE_POLLY),1)
BUILD_LLVM_CLANG := 1 # because it's a build requirement
ifeq ($(USE_SYSTEM_LLVM),0)
ifneq ($(LLVM_VER),svn)
$(error USE_POLLY=1 requires LLVM_VER=svn)
endif
endif
endif

ifeq ($(LLVM_DEBUG),1)
LLVM_BUILDTYPE := Debug
else
Expand Down Expand Up @@ -374,6 +384,16 @@ ifneq ($(LLVM_GIT_VER_LLDB),)
git checkout $(LLVM_GIT_VER_LLDB))
endif # LLVM_GIT_VER_CLANG
endif # BUILD_LLDB
ifeq ($(USE_POLLY),1)
([ ! -d $(LLVM_SRC_DIR)/tools/polly ] && \
git clone $(LLVM_GIT_URL_POLLY) $(LLVM_SRC_DIR)/tools/polly ) || \
(cd $(LLVM_SRC_DIR)/tools/polly && \
git pull --ff-only)
ifneq ($(LLVM_GIT_VER_POLLY),)
(cd $(LLVM_SRC_DIR)/tools/polly && \
git checkout $(LLVM_GIT_VER_POLLY))
endif # LLVM_GIT_VER_POLLY
endif # USE_POLLY
endif # LLVM_VER
touch -c $@

Expand Down

0 comments on commit 9ca3267

Please sign in to comment.