pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

llilc-git: Use MS version of llvm



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Tue Feb 23 11:47:51 2016 +0100
Changeset:	fafd3d8fa9cc9477d5ad43891fc5c2e48056e128

Modified Files:
	llilc-git/Makefile

Log Message:
llilc-git: Use MS version of llvm

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=fafd3d8fa9cc9477d5ad43891fc5c2e48056e128

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 llilc-git/Makefile | 66 +++++++++++++++++++++++++++++++++++++++++++++++++-----
 1 file changed, 61 insertions(+), 5 deletions(-)

diffs:
diff --git a/llilc-git/Makefile b/llilc-git/Makefile
index 46aff16..84b635a 100644
--- a/llilc-git/Makefile
+++ b/llilc-git/Makefile
@@ -1,7 +1,9 @@
 # $NetBSD: Makefile,v 1.3 2015/04/25 10:01:54 krytarowski Exp $
 
-GIT_REPOSITORIES=	llilc
-GIT_REPO.llilc=	https://github.com/dotnet/llilc.git
+GIT_REPOSITORIES=	llilc llvm
+GIT_REPO.llilc=		https://github.com/dotnet/llilc.git
+GIT_REPO.llvm=		https://github.com/microsoft/llvm
+GIT_BRANCH.llvm=	MS
 
 DISTNAME=	llilc
 PKGNAME=	llilc-0.0.0
@@ -12,20 +14,74 @@ HOMEPAGE=	https://github.com/dotnet/llilc
 COMMENT=	LLVM based compiler for .NET Core
 LICENSE=	mit
 
-WRKSRC=		${WRKDIR}/llilc
+WRKSRC=		${WRKDIR}/llvm
 CONFIGURE_DIRS=	${WRKDIR}/build
 CMAKE_ARG_PATH=	${WRKSRC}
 
 USE_CMAKE=	yes
 USE_LANGUAGES=	c c++
 
-USE_TOOLS+=	bash
-REPLACE_BASH+=	build.sh
+# LLVM requirements
+GCC_REQD+=              4.8
+PYTHON_FOR_BUILD_ONLY=  yes
+
+CMAKE_ARGS+=	-DCMAKE_BUILD_TYPE=Release
+CMAKE_ARGS+=	-DCMAKE_C_COMPILER=gcc
+CMAKE_ARGS+=    -DCMAKE_CXX_COMPILER=g++
+
+CHECK_PORTABILITY_SKIP= utils/buildit/build_llvm
+
+# XXX perl is not added as a tool as it does not seem to be required
+REPLACE_PERL+=		utils/GenLibDeps.pl
+REPLACE_PERL+=		utils/UpdateCMakeLists.pl
+REPLACE_PERL+=		utils/codegen-diff
+REPLACE_PERL+=		utils/findsym.pl
+REPLACE_PERL+=		utils/llvm-native-gxx
+REPLACE_PERL+=		utils/test_debuginfo.pl
+
+REPLACE_PYTHON+=	examples/Kaleidoscope/MCJIT/cached/genk-timing.py
+REPLACE_PYTHON+=	examples/Kaleidoscope/MCJIT/cached/split-lib.py
+REPLACE_PYTHON+=	examples/Kaleidoscope/MCJIT/complete/genk-timing.py
+REPLACE_PYTHON+=	examples/Kaleidoscope/MCJIT/complete/split-lib.py
+REPLACE_PYTHON+=	examples/Kaleidoscope/MCJIT/lazy/genk-timing.py
+REPLACE_PYTHON+=	test/BugPoint/compile-custom.ll.py
+REPLACE_PYTHON+=	test/tools/llvm-readobj/Inputs/relocs.py
+REPLACE_PYTHON+=	utils/Misc/zkill
+REPLACE_PYTHON+=	utils/Target/ARM/analyze-match-table.py
+REPLACE_PYTHON+=	utils/bisect
+REPLACE_PYTHON+=	utils/clang-parse-diagnostics-file
+REPLACE_PYTHON+=	utils/create_ladder_graph.py
+REPLACE_PYTHON+=	utils/git/find-rev
+REPLACE_PYTHON+=	utils/lint/common_lint.py
+REPLACE_PYTHON+=	utils/lint/cpp_lint.py
+REPLACE_PYTHON+=	utils/lint/generic_lint.py
+REPLACE_PYTHON+=	utils/lit/lit.py
+REPLACE_PYTHON+=	utils/lit/lit/ProgressBar.py
+REPLACE_PYTHON+=	utils/lit/lit/main.py
+REPLACE_PYTHON+=	utils/lit/tests/Inputs/googletest-format/DummySubDir/OneTest
+REPLACE_PYTHON+=	utils/llvm-build/llvm-build
+REPLACE_PYTHON+=	utils/llvm-compilers-check
+REPLACE_PYTHON+=	utils/llvm-lit/llvm-lit.in
+REPLACE_PYTHON+=	utils/release/findRegressions-nightly.py
+REPLACE_PYTHON+=	utils/release/findRegressions-simple.py
+REPLACE_PYTHON+=	utils/schedcover.py
+REPLACE_PYTHON+=	utils/shuffle_fuzz.py
+REPLACE_PYTHON+=	utils/sort_includes.py
+REPLACE_PYTHON+=	utils/testgen/mc-bundling-x86-gen.py
+REPLACE_PYTHON+=	utils/update_llc_test_checks.py
+REPLACE_PYTHON+=	utils/wciia.py
+
+# Try to optimize building LLVM for now.
+CMAKE_ARGS+=	-DLLVM_TARGETS_TO_BUILD="X86"
+
+# https://github.com/dotnet/llilc/blob/master/Documentation/Getting-Started-For-Linux-and-OS-X.md
 
 CMAKE_ARGS+=	-DWITH_CORECLR:PATH=${PREFIX}/CoreCLR
+CMAKE_ARGS+=	-DLLVM_OPTIMIZED_TABLEGEN=ON
 
 post-extract:
 	${RUN} mkdir -p ${WRKDIR}/build
+	${RUN} ln -s ${WRKDIR}/llilc ${WRKDIR}/llvm/tools/llilc
 
 .include "../../wip/coreclr-git/buildlink3.mk"
 .include "../../wip/llvm-git/buildlink3.mk"


Home | Main Index | Thread Index | Old Index