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

Side by Side Diff: autoconf/configure.ac

Issue 7847007: lto/addAsmGlobalSymbols: fail fracefully when the target does not define AsmParser. (Closed) Base URL: https://llvm.org/svn/llvm-project/llvm/trunk/
Patch Set: . Created 9 years, 3 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 unified diff | Download patch
« no previous file with comments | « CMakeLists.txt ('k') | configure » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 dnl === configure.ac --------------------------------------------------------=== 1 dnl === configure.ac --------------------------------------------------------===
2 dnl The LLVM Compiler Infrastructure 2 dnl The LLVM Compiler Infrastructure
3 dnl 3 dnl
4 dnl This file is distributed under the University of Illinois Open Source 4 dnl This file is distributed under the University of Illinois Open Source
5 dnl License. See LICENSE.TXT for details. 5 dnl License. See LICENSE.TXT for details.
6 dnl 6 dnl
7 dnl===-----------------------------------------------------------------------=== 7 dnl===-----------------------------------------------------------------------===
8 dnl This is the LLVM configuration script. It is processed by the autoconf 8 dnl This is the LLVM configuration script. It is processed by the autoconf
9 dnl program to produce a script named configure. This script contains the 9 dnl program to produce a script named configure. This script contains the
10 dnl configuration checks that LLVM needs in order to support multiple platforms. 10 dnl configuration checks that LLVM needs in order to support multiple platforms.
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 *) AC_MSG_ERROR([Invalid setting for --enable-timestamps. Use "yes" or "no"]) ;; 596 *) AC_MSG_ERROR([Invalid setting for --enable-timestamps. Use "yes" or "no"]) ;;
597 esac 597 esac
598 AC_DEFINE_UNQUOTED([ENABLE_TIMESTAMPS],$ENABLE_TIMESTAMPS, 598 AC_DEFINE_UNQUOTED([ENABLE_TIMESTAMPS],$ENABLE_TIMESTAMPS,
599 [Define if timestamp information (e.g., __DATE___) is allowed ]) 599 [Define if timestamp information (e.g., __DATE___) is allowed ])
600 600
601 dnl Allow specific targets to be specified for building (or not) 601 dnl Allow specific targets to be specified for building (or not)
602 TARGETS_TO_BUILD="" 602 TARGETS_TO_BUILD=""
603 AC_ARG_ENABLE([targets],AS_HELP_STRING([--enable-targets], 603 AC_ARG_ENABLE([targets],AS_HELP_STRING([--enable-targets],
604 [Build specific host targets: all or target1,target2,... Valid targets are: 604 [Build specific host targets: all or target1,target2,... Valid targets are:
605 host, x86, x86_64, sparc, powerpc, alpha, arm, mips, spu, 605 host, x86, x86_64, sparc, powerpc, alpha, arm, mips, spu,
606 xcore, msp430, systemz, blackfin, ptx, cbe, and cpp (default=all)]),, 606 xcore, msp430, systemz, blackfin, ptx, pnacl, cbe, and cpp (default=all)]), ,
607 enableval=all) 607 enableval=all)
608 if test "$enableval" = host-only ; then 608 if test "$enableval" = host-only ; then
609 enableval=host 609 enableval=host
610 fi 610 fi
611 case "$enableval" in 611 case "$enableval" in
612 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 S ystemZ Blackfin CBackend CppBackend MBlaze PTX" ;; 612 all) TARGETS_TO_BUILD="X86 Sparc PowerPC Alpha ARM Mips CellSPU XCore MSP430 S ystemZ Blackfin CBackend CppBackend MBlaze PTX PNaCl" ;;
613 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do 613 *)for a_target in `echo $enableval|sed -e 's/,/ /g' ` ; do
614 case "$a_target" in 614 case "$a_target" in
615 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 615 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
616 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 616 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
617 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 617 sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
618 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 618 powerpc) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
619 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; 619 alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
620 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 620 arm) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
621 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 621 mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
622 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; 622 spu) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
623 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 623 xcore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
624 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 624 msp430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
625 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; 625 systemz) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
626 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; 626 blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
627 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;; 627 cbe) TARGETS_TO_BUILD="CBackend $TARGETS_TO_BUILD" ;;
628 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;; 628 cpp) TARGETS_TO_BUILD="CppBackend $TARGETS_TO_BUILD" ;;
629 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; 629 mblaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
630 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;; 630 ptx) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
631 pnacl) TARGETS_TO_BUILD="PNaCl $TARGETS_TO_BUILD" ;;
631 host) case "$llvm_cv_target_arch" in 632 host) case "$llvm_cv_target_arch" in
632 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 633 x86) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
633 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;; 634 x86_64) TARGETS_TO_BUILD="X86 $TARGETS_TO_BUILD" ;;
634 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;; 635 Sparc) TARGETS_TO_BUILD="Sparc $TARGETS_TO_BUILD" ;;
635 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;; 636 PowerPC) TARGETS_TO_BUILD="PowerPC $TARGETS_TO_BUILD" ;;
636 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;; 637 Alpha) TARGETS_TO_BUILD="Alpha $TARGETS_TO_BUILD" ;;
637 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;; 638 ARM) TARGETS_TO_BUILD="ARM $TARGETS_TO_BUILD" ;;
638 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;; 639 Mips) TARGETS_TO_BUILD="Mips $TARGETS_TO_BUILD" ;;
639 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;; 640 MBlaze) TARGETS_TO_BUILD="MBlaze $TARGETS_TO_BUILD" ;;
640 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;; 641 CellSPU|SPU) TARGETS_TO_BUILD="CellSPU $TARGETS_TO_BUILD" ;;
641 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;; 642 XCore) TARGETS_TO_BUILD="XCore $TARGETS_TO_BUILD" ;;
642 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;; 643 MSP430) TARGETS_TO_BUILD="MSP430 $TARGETS_TO_BUILD" ;;
643 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;; 644 s390x) TARGETS_TO_BUILD="SystemZ $TARGETS_TO_BUILD" ;;
644 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;; 645 Blackfin) TARGETS_TO_BUILD="Blackfin $TARGETS_TO_BUILD" ;;
645 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;; 646 PTX) TARGETS_TO_BUILD="PTX $TARGETS_TO_BUILD" ;;
647 PNaCl) TARGETS_TO_BUILD="PNaCl $TARGETS_TO_BUILD" ;;
646 *) AC_MSG_ERROR([Can not set target to build]) ;; 648 *) AC_MSG_ERROR([Can not set target to build]) ;;
647 esac ;; 649 esac ;;
648 *) AC_MSG_ERROR([Unrecognized target $a_target]) ;; 650 *) AC_MSG_ERROR([Unrecognized target $a_target]) ;;
649 esac 651 esac
650 done 652 done
651 ;; 653 ;;
652 esac 654 esac
653 AC_SUBST(TARGETS_TO_BUILD,$TARGETS_TO_BUILD) 655 AC_SUBST(TARGETS_TO_BUILD,$TARGETS_TO_BUILD)
654 656
655 # Determine whether we are building LLVM support for the native architecture. 657 # Determine whether we are building LLVM support for the native architecture.
(...skipping 1116 matching lines...) Expand 10 before | Expand all | Expand 10 after
1772 AC_CONFIG_MAKEFILE(test/Makefile.tests) 1774 AC_CONFIG_MAKEFILE(test/Makefile.tests)
1773 AC_CONFIG_MAKEFILE(unittests/Makefile) 1775 AC_CONFIG_MAKEFILE(unittests/Makefile)
1774 AC_CONFIG_MAKEFILE(tools/Makefile) 1776 AC_CONFIG_MAKEFILE(tools/Makefile)
1775 AC_CONFIG_MAKEFILE(utils/Makefile) 1777 AC_CONFIG_MAKEFILE(utils/Makefile)
1776 AC_CONFIG_MAKEFILE(projects/Makefile) 1778 AC_CONFIG_MAKEFILE(projects/Makefile)
1777 AC_CONFIG_MAKEFILE(bindings/Makefile) 1779 AC_CONFIG_MAKEFILE(bindings/Makefile)
1778 AC_CONFIG_MAKEFILE(bindings/ocaml/Makefile.ocaml) 1780 AC_CONFIG_MAKEFILE(bindings/ocaml/Makefile.ocaml)
1779 1781
1780 dnl Finally, crank out the output 1782 dnl Finally, crank out the output
1781 AC_OUTPUT 1783 AC_OUTPUT
OLDNEW
« no previous file with comments | « CMakeLists.txt ('k') | configure » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698