[llvm-commits] [llvm] r73590 - /llvm/trunk/autoconf/configure.ac

Bill Wendling isanbard at gmail.com
Wed Jun 17 11:23:17 PDT 2009


Did you regenerate the configure file? :-)

-bw

On Tue, Jun 16, 2009 at 5:42 PM, Douglas Gregor<dgregor at apple.com> wrote:
> Author: dgregor
> Date: Tue Jun 16 19:42:33 2009
> New Revision: 73590
>
> URL: http://llvm.org/viewvc/llvm-project?rev=73590&view=rev
> Log:
> 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
>
> Modified:
>    llvm/trunk/autoconf/configure.ac
>
> Modified: llvm/trunk/autoconf/configure.ac
> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/autoconf/configure.ac?rev=73590&r1=73589&r2=73590&view=diff
>
> ==============================================================================
> --- llvm/trunk/autoconf/configure.ac (original)
> +++ llvm/trunk/autoconf/configure.ac Tue Jun 16 19:42:33 2009
> @@ -234,6 +234,13 @@
>   AC_MSG_WARN([Configuring LLVM for an unknown target archicture])
>  fi
>
> +# Determine the LLVM native architecture for the target
> +case "$llvm_cv_target_arch" in
> +    x86)     LLVM_NATIVE_ARCH="X86" ;;
> +    x86_64)  LLVM_NATIVE_ARCH="X86" ;;
> +    *)       LLVM_NATIVE_ARCH="$llvm_cv_target_arch" ;;
> +esac
> +
>  dnl Define a substitution, ARCH, for the target architecture
>  AC_SUBST(ARCH,$llvm_cv_target_arch)
>
> @@ -436,6 +443,15 @@
>  esac
>  AC_SUBST(TARGETS_TO_BUILD,$TARGETS_TO_BUILD)
>
> +# Determine whether we are building LLVM support for the native architecture.
> +# If so, define LLVM_NATIVE_ARCH to that LLVM target.
> +for a_target in $TARGETS_TO_BUILD; do
> +  if test "$a_target" = "$LLVM_NATIVE_ARCH"; then
> +    AC_DEFINE_UNQUOTED(LLVM_NATIVE_ARCH,$LLVM_NATIVE_ARCH,
> +      [LLVM architecture name for the native architecture, if available])
> +  fi
> +done
> +
>  # Build the LLVM_TARGET and LLVM_ASM_PRINTER macro uses for
>  # Targets.def and AsmPrinters.def.
>  LLVM_ENUM_TARGETS=""
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>




More information about the llvm-commits mailing list