From: Jeff Cohen Date: Wed, 28 Mar 2007 04:45:02 +0000 (+0000) Subject: Fix problem with llvm-config that prevented JIT from being used on x86_64 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=02c91ef2cbdfd6b3c487a8f1c4de05562e1ea73e;p=oota-llvm.git Fix problem with llvm-config that prevented JIT from being used on x86_64 systems. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35416 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/llvm-config/llvm-config.in.in b/tools/llvm-config/llvm-config.in.in index 2f5af8a8582..a6cf5f82736 100644 --- a/tools/llvm-config/llvm-config.in.in +++ b/tools/llvm-config/llvm-config.in.in @@ -44,6 +44,10 @@ my $TARGET_HAS_JIT = q{@TARGET_HAS_JIT@}; my @TARGETS_BUILT = map { lc($_) } qw{@TARGETS_TO_BUILD@}; #---- end autoconf values ---- +# Must pretend x86_64 architecture is really x86, otherwise the native backend +# won't get linked in. +$ARCH = "x86" if $ARCH eq "x86_64"; + #---- begin Makefile values ---- my $CFLAGS = q{@LLVM_CFLAGS@}; my $CXXFLAGS = q{@LLVM_CXXFLAGS@};