diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-06-16 20:12:29 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-06-16 20:12:29 +0000 |
commit | 1555a23335400143f2b54a66aedc4b5cbbb79f8d (patch) | |
tree | 985992c30abab41dd1214ad676c58ad5fa67e88a /autoconf | |
parent | c6ac322c1c9544961a29f0fdc592fa2ce1073ca9 (diff) | |
download | external_llvm-1555a23335400143f2b54a66aedc4b5cbbb79f8d.zip external_llvm-1555a23335400143f2b54a66aedc4b5cbbb79f8d.tar.gz external_llvm-1555a23335400143f2b54a66aedc4b5cbbb79f8d.tar.bz2 |
Introduce new headers whose inclusion forces linking and
initialization of all targets (InitializeAllTargets.h) or assembler
printers (InitializeAllAsmPrinters.h). This is a step toward the
elimination of relinked object files, so that we can build normal
archives.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73543 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r-- | autoconf/configure.ac | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac index 82539f0..828e558 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -436,6 +436,19 @@ case "$enableval" in esac AC_SUBST(TARGETS_TO_BUILD,$TARGETS_TO_BUILD) +# Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for +# Targets.def and AsmPrinters.def. +LLVM_ENUM_TARGETS="" +LLVM_ENUM_ASM_PRINTERS="" +for target_to_build in $TARGETS_TO_BUILD; do + LLVM_ENUM_TARGETS="LLVM_TARGET($target_to_build) $LLVM_ENUM_TARGETS" + if test -f ${srcdir}/lib/Target/${target_to_build}/AsmPrinter/Makefile ; then + LLVM_ENUM_ASM_PRINTERS="LLVM_ASM_PRINTER($target_to_build) $LLVM_ENUM_ASM_PRINTERS"; + fi +done +AC_SUBST(LLVM_ENUM_TARGETS) +AC_SUBST(LLVM_ENUM_ASM_PRINTERS) + 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 @@ -1111,6 +1124,8 @@ dnl you MUST also update Makefile.rules so that the variable FilesToConfig dnl contains the same list of files as AC_CONFIG_HEADERS below. This ensures the dnl files can be updated automatically when their *.in sources change. AC_CONFIG_HEADERS([include/llvm/Config/config.h]) +AC_CONFIG_FILES([include/llvm/Config/Targets.def]) +AC_CONFIG_FILES([include/llvm/Config/AsmPrinters.def]) AC_CONFIG_HEADERS([include/llvm/Support/DataTypes.h]) AC_CONFIG_HEADERS([include/llvm/ADT/iterator.h]) |