sm-commit AT lists.ibiblio.org
Subject: Source Mage code commit list
List archive
[SM-Commit] GIT changes to devel-xorg-modular grimoire by Treeve Jelbert (f5dc109fd66a756566f4113628cf834b60a44a0c)
- From: Treeve Jelbert <scm AT sourcemage.org>
- To: sm-commit AT lists.ibiblio.org
- Subject: [SM-Commit] GIT changes to devel-xorg-modular grimoire by Treeve Jelbert (f5dc109fd66a756566f4113628cf834b60a44a0c)
- Date: Sun, 11 Jan 2015 05:49:53 -0600
GIT changes to devel-xorg-modular grimoire by Treeve Jelbert
<treeve AT sourcemage.org>:
devel/llvm/BUILD | 3 +++
devel/llvm/CONFIGURE | 7 +++++++
devel/llvm/HISTORY | 3 +++
devel/llvm/PRE_BUILD | 4 +++-
4 files changed, 16 insertions(+), 1 deletion(-)
New commits:
commit f5dc109fd66a756566f4113628cf834b60a44a0c
Author: Treeve Jelbert <treeve AT sourcemage.org>
Commit: Treeve Jelbert <treeve AT sourcemage.org>
llvm - allow user ro specify backends to build
diff --git a/devel/llvm/BUILD b/devel/llvm/BUILD
index 8471793..73fc62f 100755
--- a/devel/llvm/BUILD
+++ b/devel/llvm/BUILD
@@ -1,6 +1,9 @@
+# LLVM_TARGETS
+OPTS+=" -DLLVM_TARGETS_TO_BUILD=`echo ${LLVM_TARGETS} | sed 's/ /;/g'`" &&
# Not restricting targets, so that mesalib gets R600.
if [[ $LLVM_EXP_R600 == y ]];then
OPTS+=" -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD=R600"
fi &&
OPTS+=" -DBUILD_SHARED_LIBS=1 -DCMAKE_BUILD_TYPE=RELEASE" &&
+message opts=$OPTS &&
cmake_build
diff --git a/devel/llvm/CONFIGURE b/devel/llvm/CONFIGURE
index 56e1c71..57dd353 100755
--- a/devel/llvm/CONFIGURE
+++ b/devel/llvm/CONFIGURE
@@ -1,3 +1,10 @@
+. $GRIMOIRE/config_query_multi.function &&
+message "$DEFAULT_COLOR$MESSAGE_COLOR" \
+ "LLVM can build multiple backends." \
+ "\nFor most people, X86, CppBackend and R600 are sufficient." &&
+config_query_multi LLVM_TARGETS "which backend targets?" \
+ AArch64 ARM CppBackend Hexagon Mips MSP430 NVPTX PowerPC R600 Sparc
SystemZ X86 XCore &&
+
if [[ "$LLVM_WITH_CLANG" == "y" ]]
then
config_query LLVM_WITH_ANALYZER \
diff --git a/devel/llvm/HISTORY b/devel/llvm/HISTORY
index 4542891..7b2c52f 100644
--- a/devel/llvm/HISTORY
+++ b/devel/llvm/HISTORY
@@ -1,3 +1,6 @@
+2015-01-11 Treeve Jelbert <treeve AT sourcemage.org>
+ * BUILD, CONFIGURE, PRE_BUILD: allow user to specify backends to build
+
2014-12-16 Treeve Jelbert <treeve AT sourcemage.org>
* BUILD, CONFIGURE: ensure that R600 is supported
diff --git a/devel/llvm/PRE_BUILD b/devel/llvm/PRE_BUILD
index da9f572..96959da 100755
--- a/devel/llvm/PRE_BUILD
+++ b/devel/llvm/PRE_BUILD
@@ -32,4 +32,6 @@ fi &&
if is_depends_enabled $SPELL python3;then
cd utils/llvm-build/llvmbuild &&
2to3 --no-diffs -wn .
-fi
+fi &&
+# do not build all backends
+sed -i "/^set.*all\"$/s/all//" CMakeLists.txt
- [SM-Commit] GIT changes to devel-xorg-modular grimoire by Treeve Jelbert (f5dc109fd66a756566f4113628cf834b60a44a0c), Treeve Jelbert, 01/11/2015
Archive powered by MHonArc 2.6.24.