llvm.org GIT mirror llvm / 0e80e18
Support for experimental targets Added LLVM_EXPERIMENTAL_TARGETS_TO_BUILD in CMake and --enable-experimental-targets in configure. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@161561 91177308-0d34-0410-b5e6-96231b3b80d8 Victor Oliveira 8 years ago
3 changed file(s) with 37 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
9898 CACHE STRING "Semicolon-separated list of targets to build, or \"all\".")
9999 endif( MSVC )
100100
101 set(LLVM_EXPERIMENTAL_TARGETS_TO_BUILD ""
102 CACHE STRING "Semicolon-separated list of experimental targets to build.")
103
101104 option(BUILD_SHARED_LIBS
102105 "Build all libraries as shared libraries instead of static" OFF)
103106
134137 set(LLVM_ENUM_TARGETS "${LLVM_ENUM_TARGETS}LLVM_TARGET(${c})\n")
135138 endif()
136139 endforeach(c)
140
141 set(LLVM_TARGETS_TO_BUILD
142 ${LLVM_TARGETS_TO_BUILD}
143 ${LLVM_EXPERIMENTAL_TARGETS_TO_BUILD}
144 )
137145
138146 set(llvm_builded_incs_dir ${LLVM_BINARY_DIR}/include/llvm)
139147
716716 done
717717 ;;
718718 esac
719
720 AC_ARG_ENABLE([experimental-targets],AS_HELP_STRING([--enable-experimental-targets],
721 [Build experimental host targets: disable or target1,target2,...
722 (default=disable)]),,
723 enableval=disable)
724
725 if test ${enableval} != "disable"
726 then
727 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
728 fi
729
719730 AC_SUBST(TARGETS_TO_BUILD,$TARGETS_TO_BUILD)
720731
721732 dnl Determine whether we are building LLVM support for the native architecture.
14241424 target1,target2,... Valid targets are: host, x86,
14251425 x86_64, sparc, powerpc, arm, mips, spu, hexagon,
14261426 xcore, msp430, nvptx, and cpp (default=all)
1427 --enable-experimental-targets
1428 Build experimental host targets: disable or
1429 target1,target2,... (default=disable)
14271430 --enable-bindings Build specific language bindings:
14281431 all,auto,none,{binding-name} (default=auto)
14291432 --enable-libffi Check for the presence of libffi (default is NO)
54145417 done
54155418 ;;
54165419 esac
5420
5421 # Check whether --enable-experimental-targets was given.
5422 if test "${enable_experimental_targets+set}" = set; then
5423 enableval=$enable_experimental_targets;
5424 else
5425 enableval=disable
5426 fi
5427
5428
5429 if test ${enableval} != "disable"
5430 then
5431 TARGETS_TO_BUILD="$enableval $TARGETS_TO_BUILD"
5432 fi
5433
54175434 TARGETS_TO_BUILD=$TARGETS_TO_BUILD
54185435
54195436
1025410271 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
1025510272 lt_status=$lt_dlunknown
1025610273 cat > conftest.$ac_ext <
10257 #line 10258 "configure"
10274 #line 10275 "configure"
1025810275 #include "confdefs.h"
1025910276
1026010277 #if HAVE_DLFCN_H