llvm.org GIT mirror llvm / 76166fc
Define LLVM_NATIVE_ARCH in llvm/Config/config.h to be the LLVM back end that corresponds to the native executable, but only when that LLVM back end is being built git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73590 91177308-0d34-0410-b5e6-96231b3b80d8 Douglas Gregor 11 years ago
1 changed file(s) with 16 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
233233 AC_MSG_WARN([Configuring LLVM for an unknown target archicture])
234234 fi
235235
236 # Determine the LLVM native architecture for the target
237 case "$llvm_cv_target_arch" in
238 x86) LLVM_NATIVE_ARCH="X86" ;;
239 x86_64) LLVM_NATIVE_ARCH="X86" ;;
240 *) LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
241 esac
242
236243 dnl Define a substitution, ARCH, for the target architecture
237244 AC_SUBST(ARCH,$llvm_cv_target_arch)
238245
435442 esac
436443 AC_SUBST(TARGETS_TO_BUILD,$TARGETS_TO_BUILD)
437444
445 # Determine whether we are building LLVM support for the native architecture.
446 # If so, define LLVM_NATIVE_ARCH to that LLVM target.
447 for a_target in $TARGETS_TO_BUILD; do
448 if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
449 AC_DEFINE_UNQUOTED(LLVM_NATIVE_ARCH,$LLVM_NATIVE_ARCH,
450 [LLVM architecture name for the native architecture, if available])
451 fi
452 done
453
438454 # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
439455 # Targets.def and AsmPrinters.def.
440456 LLVM_ENUM_TARGETS=""