Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

31 lines (27 sloc) 1.031 kB
# This file is part of MXE.
# See index.html for further information.
PKG := llvm
$(PKG)_IGNORE :=
$(PKG)_CHECKSUM := b683e7294fcf69887c0d709025d4640f5dca755b
$(PKG)_SUBDIR := llvm-$($(PKG)_VERSION).src
$(PKG)_FILE := llvm-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := http://llvm.org/releases/$($(PKG)_VERSION)/$($(PKG)_FILE)
$(PKG)_DEPS := gcc
define $(PKG)_UPDATE
$(WGET) -q -O- 'http://llvm.org/releases/download.html' | \
grep 'Download LLVM' | \
$(SED) -n 's,.*\([0-9]\.[0-9]\).*,\1,p' | \
head -1
endef
define $(PKG)_BUILD
mkdir '$(1)/build'
cd '$(1)/build' && cmake .. \
-DCMAKE_TOOLCHAIN_FILE='$(CMAKE_TOOLCHAIN_FILE)' \
-DLIBTYPE=STATIC \
-DLLVM_TARGETS_TO_BUILD="X86;" \
-DLLVM_BUILD_TOOLS=OFF
$(MAKE) -C '$(1)/build' -j $(JOBS) llvm-tblgen
$(MAKE) -C '$(1)/build' -j $(JOBS) intrinsics_gen
$(MAKE) -C '$(1)/build' -j $(JOBS) install
ln -sf '$(PREFIX)/$(TARGET)/bin/llvm-config' '$(PREFIX)/bin/$(TARGET)-llvm-config'
endef
Jump to Line
Something went wrong with that request. Please try again.