Skip to content

Commit

Permalink
[mono-sdks] Necessary changes to unify the LLVM provisioning for both…
Browse files Browse the repository at this point in the history
… iOS and Android.
  • Loading branch information
luhenry committed Sep 2, 2018
1 parent f69a8fc commit 93db404
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
14 changes: 7 additions & 7 deletions builds/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ CCACHE_CXXFLAGS=-Qunused-arguments
# Configuration for the mono sdk makefiles
#
SDK_CONFIG=$(MONO_PATH)/sdks/Make.config
SDK_ARGS=XCODE_DIR=$(XCODE_DEVELOPER_ROOT) IOS_VERSION=$(IOS_SDK_VERSION) IOS_VERSION_MIN=$(MIN_IOS_SDK_VERSION) TVOS_VERSION=$(TVOS_SDK_VERSION) TVOS_VERSION_MIN=$(MIN_TVOS_SDK_VERSION) WATCHOS_VERSION=$(WATCH_SDK_VERSION) WATCHOS_VERSION_MIN=$(MIN_WATCHOS_SDK_VERSION)
SDK_ARGS=XCODE_DIR=$(XCODE_DEVELOPER_ROOT) IOS_VERSION=$(IOS_SDK_VERSION) IOS_VERSION_MIN=$(MIN_IOS_SDK_VERSION) TVOS_VERSION=$(TVOS_SDK_VERSION) TVOS_VERSION_MIN=$(MIN_TVOS_SDK_VERSION) WATCHOS_VERSION=$(WATCH_SDK_VERSION) WATCHOS_VERSION_MIN=$(MIN_WATCHOS_SDK_VERSION) IGNORE_PROVISION_LLVM=1

ifdef IGNORE_PACKAGE_LLVM
SDK_ARGS += IGNORE_PACKAGE_LLVM=1
ifdef DISABLE_DOWNLOAD_LLVM
SDK_ARGS += DISABLE_DOWNLOAD_LLVM=1
endif

SDK_BUILDDIR = $(MONO_PATH)/sdks/builds
Expand Down Expand Up @@ -1498,11 +1498,11 @@ build-llvm32: .stamp-build-llvm
build-llvm64: .stamp-build-llvm

.stamp-build-llvm: $(SDK_CONFIG)
$(MAKE) -C $(SDK_BUILDDIR) build-ios-llvm $(SDK_ARGS)
$(MAKE) -C $(SDK_BUILDDIR) provision-llvm36-llvm32 provision-llvm-llvm64 $(SDK_ARGS)
$(Q) touch $@

clean-llvm: $(SDK_CONFIG)
$(MAKE) -C $(SDK_BUILDDIR) clean-ios-llvm $(SDK_ARGS)
$(MAKE) -C $(SDK_BUILDDIR) clean-llvm36-llvm32 clean-llvm-llvm64 $(SDK_ARGS)
$(RM) .stamp-*-llvm*

.PHONY: install-llvm64 llvm llvm64
Expand All @@ -1515,10 +1515,10 @@ LLVM_TARGETS = \
$(PREFIX)/LLVM36/bin/opt \
$(PREFIX)/LLVM36/bin/llc

$(PREFIX)/LLVM/bin/%: $(SDK_DESTDIR)/ios-llvm64/bin/% | $(PREFIX)/LLVM/bin
$(PREFIX)/LLVM/bin/%: $(SDK_DESTDIR)/llvm-llvm64/bin/% | $(PREFIX)/LLVM/bin
$(call Q_2,INSTALL ,[LLVM64]) install -c -m 0755 $(INSTALL_STRIP_FLAG) $^ $@

$(PREFIX)/LLVM36/bin/%: $(SDK_DESTDIR)/ios-llvm36-32/bin/% | $(PREFIX)/LLVM36/bin
$(PREFIX)/LLVM36/bin/%: $(SDK_DESTDIR)/llvm36-llvm32/bin/% | $(PREFIX)/LLVM36/bin
$(call Q_2,INSTALL ,[LLVM64]) install -c -m 0755 $(INSTALL_STRIP_FLAG) $^ $@

$(PREFIX)/LLVM/bin:
Expand Down
2 changes: 1 addition & 1 deletion configure
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ while test x$1 != x; do
shift
;;
--disable-packaged-llvm)
echo "IGNORE_PACKAGE_LLVM=1" >> $CONFIGURED_FILE
echo "DISABLE_DOWNLOAD_LLVM=1" >> $CONFIGURED_FILE
shift
;;
--help|-h)
Expand Down
2 changes: 1 addition & 1 deletion external/mono

0 comments on commit 93db404

Please sign in to comment.