Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(39)

Unified Diff: autoconf/configure.ac

Issue 7730004: add llvm configure flags to enable/disable target OSes/Envs Base URL: https://llvm.org/svn/llvm-project/llvm/trunk/
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Makefile.config.in ('k') | configure » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: autoconf/configure.ac
===================================================================
--- autoconf/configure.ac (revision 138335)
+++ autoconf/configure.ac (working copy)
@@ -703,6 +703,102 @@
AC_SUBST(LLVM_ENUM_ASM_PARSERS)
AC_SUBST(LLVM_ENUM_DISASSEMBLERS)
+dnl Allow specific target OSes to be supported in the build (or not).
+TARGET_OSES_TO_BUILD=""
+AC_ARG_ENABLE([target-oses],AS_HELP_STRING([--enable-target-oses],
+ [Build specific target OSes: all or target_os1,target_os2,...
+ Valid targets are:
+ host, AuroraUX, Cygwin, Darwin, DragonFly, Freebsd, IOS, KFreeBSD, Linux,
+ Lv2, MacOSX, MinGW32, NetBSD, OpenBSD, Psp, Solaris, Win32, Haiku, Minix,
+ RTEMS, NativeClient, (default=all)]),,
+ enableval=all)
+if test "$enableval" = host-only ; then
+ enableval=host
+fi
+case "$enableval" in
+ all)
+ TARGET_OSES_TO_BUILD="AuroraUX Cygwin Darwin DragonFly FreeBSD IOS KFreeBSD Linux Lv2 MacOSX MinGW32 NetBSD OpenBSD Psp Solaris Win32 Haiku Minix RTEMS NativeClient" ;;
+ *)
+ for a_target in `echo $enableval | sed -e 's/,/ /g' ` ; do
+ case "$a_target" in
+ AuroraUX) TARGET_OSES_TO_BUILD="AuroraUX $TARGET_OSES_TO_BUILD" ;;
+ Cygwin) TARGET_OSES_TO_BUILD="Cygwin $TARGET_OSES_TO_BUILD" ;;
+ Darwin) TARGET_OSES_TO_BUILD="Darwin $TARGET_OSES_TO_BUILD" ;;
+ DragonFly) TARGET_OSES_TO_BUILD="DragonFly $TARGET_OSES_TO_BUILD" ;;
+ FreeBSD) TARGET_OSES_TO_BUILD="FreeBSD $TARGET_OSES_TO_BUILD" ;;
+ IOS) TARGET_OSES_TO_BUILD="IOS $TARGET_OSES_TO_BUILD" ;;
+ KFreeBSD) TARGET_OSES_TO_BUILD="KFreeBSD $TARGET_OSES_TO_BUILD" ;;
+ Linux) TARGET_OSES_TO_BUILD="Linux $TARGET_OSES_TO_BUILD" ;;
+ Lv2) TARGET_OSES_TO_BUILD="Lv2 $TARGET_OSES_TO_BUILD" ;;
+ MacOSX) TARGET_OSES_TO_BUILD="MacOSX $TARGET_OSES_TO_BUILD" ;;
+ MinGW32) TARGET_OSES_TO_BUILD="MinGW32 $TARGET_OSES_TO_BUILD" ;;
+ NetBSD) TARGET_OSES_TO_BUILD="NetBSD $TARGET_OSES_TO_BUILD" ;;
+ OpenBSD) TARGET_OSES_TO_BUILD="OpenBSD $TARGET_OSES_TO_BUILD" ;;
+ Psp) TARGET_OSES_TO_BUILD="Psp $TARGET_OSES_TO_BUILD" ;;
+ Solaris) TARGET_OSES_TO_BUILD="Solaris $TARGET_OSES_TO_BUILD" ;;
+ Win32) TARGET_OSES_TO_BUILD="Win32 $TARGET_OSES_TO_BUILD" ;;
+ Haiku) TARGET_OSES_TO_BUILD="Haiku $TARGET_OSES_TO_BUILD" ;;
+ Minix) TARGET_OSES_TO_BUILD="Minix $TARGET_OSES_TO_BUILD" ;;
+ RTEMS) TARGET_OSES_TO_BUILD="RTEMS $TARGET_OSES_TO_BUILD" ;;
+ NativeClient)
+ TARGET_OSES_TO_BUILD="NativeClient $TARGET_OSES_TO_BUILD" ;;
+ host)
+ case "$llvm_cv_os_type" in
+ AuroraUX) TARGET_OSES_TO_BUILD="AuroraUX $TARGET_OSES_TO_BUILD" ;;
+ Cygwin) TARGET_OSES_TO_BUILD="Cygwin $TARGET_OSES_TO_BUILD" ;;
+ Darwin) TARGET_OSES_TO_BUILD="Darwin $TARGET_OSES_TO_BUILD" ;;
+ DragonFly) TARGET_OSES_TO_BUILD="DragonFly $TARGET_OSES_TO_BUILD" ;;
+ FreeBSD) TARGET_OSES_TO_BUILD="FreeBSD $TARGET_OSES_TO_BUILD" ;;
+ IOS) TARGET_OSES_TO_BUILD="IOS $TARGET_OSES_TO_BUILD" ;;
+ KFreeBSD) TARGET_OSES_TO_BUILD="KFreeBSD $TARGET_OSES_TO_BUILD" ;;
+ Linux) TARGET_OSES_TO_BUILD="Linux $TARGET_OSES_TO_BUILD" ;;
+ Lv2) TARGET_OSES_TO_BUILD="Lv2 $TARGET_OSES_TO_BUILD" ;;
+ MacOSX) TARGET_OSES_TO_BUILD="MacOSX $TARGET_OSES_TO_BUILD" ;;
+ MinGW32) TARGET_OSES_TO_BUILD="MinGW32 $TARGET_OSES_TO_BUILD" ;;
+ NetBSD) TARGET_OSES_TO_BUILD="NetBSD $TARGET_OSES_TO_BUILD" ;;
+ OpenBSD) TARGET_OSES_TO_BUILD="OpenBSD $TARGET_OSES_TO_BUILD" ;;
+ Psp) TARGET_OSES_TO_BUILD="Psp $TARGET_OSES_TO_BUILD" ;;
+ Solaris) TARGET_OSES_TO_BUILD="Solaris $TARGET_OSES_TO_BUILD" ;;
+ Win32) TARGET_OSES_TO_BUILD="Win32 $TARGET_OSES_TO_BUILD" ;;
+ Haiku) TARGET_OSES_TO_BUILD="Haiku $TARGET_OSES_TO_BUILD" ;;
+ Minix) TARGET_OSES_TO_BUILD="Minix $TARGET_OSES_TO_BUILD" ;;
+ RTEMS) TARGET_OSES_TO_BUILD="RTEMS $TARGET_OSES_TO_BUILD" ;;
+ NativeClient)
+ TARGET_OSES_TO_BUILD="NativeClient $TARGET_OSES_TO_BUILD" ;;
+ *) AC_MSG_ERROR([Unrecognized target/host os $llvm_cv_os_type]) ;;
+ esac
+ ;;
+ *) AC_MSG_ERROR([Unrecognized target os $a_target]) ;;
+ esac
+ done
+ ;;
+esac
+AC_SUBST(TARGET_OSES_TO_BUILD,$TARGET_OSES_TO_BUILD)
+
+dnl Allow specific target environments to be supported in the build (or not).
+TARGET_ENVS_TO_BUILD=""
+AC_ARG_ENABLE([target-envs],AS_HELP_STRING([--enable-target-envs],
+ [Build specific target environments: all or target_env1,target_env2,...
+ Valid targets are:
+ eabi, gnueabi, gnu, macho, (default=all)]),,
+ enableval=all)
+case "$enableval" in
+ all)
+ TARGET_ENVS_TO_BUILD="eabi gnueabi gnu macho" ;;
+ *)
+ for a_target in `echo $enableval | sed -e 's/,/ /g' ` ; do
+ case "$a_target" in
+ eabi) TARGET_ENVS_TO_BUILD="eabi $TARGET_ENVS_TO_BUILD" ;;
+ gnueabi) TARGET_ENVS_TO_BUILD="gnueabi $TARGET_ENVS_TO_BUILD" ;;
+ gnu) TARGET_ENVS_TO_BUILD="gnu $TARGET_ENVS_TO_BUILD" ;;
+ macho) TARGET_ENVS_TO_BUILD="macho $TARGET_ENVS_TO_BUILD" ;;
+ *) AC_MSG_ERROR([Unrecognized target environment $a_target]) ;;
+ esac
+ done
+ ;;
+esac
+AC_SUBST(TARGET_ENVS_TO_BUILD,$TARGET_ENVS_TO_BUILD)
+
dnl Prevent the CBackend from using printf("%a") for floating point so older
dnl C compilers that cannot deal with the 0x0p+0 hex floating point format
dnl can still compile the CBE's output
« no previous file with comments | « Makefile.config.in ('k') | configure » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698