[llvm-commits] [llvm] r161561 - in /llvm/trunk: CMakeLists.txt autoconf/configure.ac configure
Victor Oliveira
Victor.Oliveira at amd.com
Wed Aug 8 18:13:59 PDT 2012
Author: victorm
Date: Wed Aug 8 20:13:59 2012
New Revision: 161561
URL: http://llvm.org/viewvc/llvm-project?rev=161561&view=rev
Log:
Support for experimental targets
Added LLVM_EXPERIMENTAL_TARGETS_TO_BUILD in CMake and --enable-experimental-targets in configure.
Modified:
llvm/trunk/CMakeLists.txt
llvm/trunk/autoconf/configure.ac
llvm/trunk/configure
Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=161561&r1=161560&r2=161561&view=diff
==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Wed Aug 8 20:13:59 2012
@@ -99,6 +99,9 @@
CACHE STRING "Semicolon-separated list of targets to build, or \"all\".")
endif( MSVC )
+set(LLVM_EXPERIMENTAL_TARGETS_TO_BUILD ""
+ CACHE STRING "Semicolon-separated list of experimental targets to build.")
+
option(BUILD_SHARED_LIBS
"Build all libraries as shared libraries instead of static" OFF)
@@ -136,6 +139,11 @@
endif()
endforeach(c)
+set(LLVM_TARGETS_TO_BUILD
+ ${LLVM_TARGETS_TO_BUILD}
+ ${LLVM_EXPERIMENTAL_TARGETS_TO_BUILD}
+ )
+
set(llvm_builded_incs_dir ${LLVM_BINARY_DIR}/include/llvm)
include(AddLLVMDefinitions)
Modified: llvm/trunk/autoconf/configure.ac
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/autoconf/configure.ac?rev=161561&r1=161560&r2=161561&view=diff
==============================================================================
--- llvm/trunk/autoconf/configure.ac (original)
+++ llvm/trunk/autoconf/configure.ac Wed Aug 8 20:13:59 2012
@@ -717,6 +717,17 @@
done
;;
esac
+
+AC_ARG_ENABLE([experimental-targets],AS_HELP_STRING([--enable-experimental-targets],
+ [Build experimental host targets: disable or target1,target2,...
+ (default=disable)]),,
+ enableval=disable)
+
+if test ${enableval} != "disable"
+then
+ TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
+fi
+
AC_SUBST(TARGETS_TO_BUILD,$TARGETS_TO_BUILD)
dnl Determine whether we are building LLVM support for the native architecture.
Modified: llvm/trunk/configure
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/configure?rev=161561&r1=161560&r2=161561&view=diff
==============================================================================
--- llvm/trunk/configure (original)
+++ llvm/trunk/configure Wed Aug 8 20:13:59 2012
@@ -1425,6 +1425,9 @@
target1,target2,... Valid targets are: host, x86,
x86_64, sparc, powerpc, arm, mips, spu, hexagon,
xcore, msp430, nvptx, and cpp (default=all)
+ --enable-experimental-targets
+ Build experimental host targets: disable or
+ target1,target2,... (default=disable)
--enable-bindings Build specific language bindings:
all,auto,none,{binding-name} (default=auto)
--enable-libffi Check for the presence of libffi (default is NO)
@@ -5415,6 +5418,20 @@
done
;;
esac
+
+# Check whether --enable-experimental-targets was given.
+if test "${enable_experimental_targets+set}" = set; then
+ enableval=$enable_experimental_targets;
+else
+ enableval=disable
+fi
+
+
+if test ${enableval} != "disable"
+then
+ TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
+fi
+
TARGETS_TO_BUILD=$TARGETS_TO_BUILD
@@ -10255,7 +10272,7 @@
lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
lt_status=$lt_dlunknown
cat > conftest.$ac_ext <<EOF
-#line 10258 "configure"
+#line 10275 "configure"
#include "confdefs.h"
#if HAVE_DLFCN_H
More information about the llvm-commits
mailing list