summaryrefslogtreecommitdiff
path: root/tools/llvm-config/llvm-config.in.in
diff options
context:
space:
mode:
authorJeff Cohen <jeffc@jolt-lang.org>2007-03-28 04:45:02 +0000
committerJeff Cohen <jeffc@jolt-lang.org>2007-03-28 04:45:02 +0000
commit02c91ef2cbdfd6b3c487a8f1c4de05562e1ea73e (patch)
treed93f2266e5a6a3f86c16eb6ecd55dafd7e6c0af7 /tools/llvm-config/llvm-config.in.in
parent9430832d0e790f3ec0f46f02ed1b359c18a88c2f (diff)
downloadllvm-02c91ef2cbdfd6b3c487a8f1c4de05562e1ea73e.tar.gz
llvm-02c91ef2cbdfd6b3c487a8f1c4de05562e1ea73e.tar.bz2
llvm-02c91ef2cbdfd6b3c487a8f1c4de05562e1ea73e.tar.xz
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
Diffstat (limited to 'tools/llvm-config/llvm-config.in.in')
-rw-r--r--tools/llvm-config/llvm-config.in.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/llvm-config/llvm-config.in.in b/tools/llvm-config/llvm-config.in.in
index 2f5af8a858..a6cf5f8273 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@};