summaryrefslogtreecommitdiffstats
path: root/llvm/tools
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
commitd578f1f87f04bb1d2c38a5ed39dae91410e5ae3f (patch)
tree1aa12ed7c5f831ca713dd42fca4238ebff8a4642 /llvm/tools
parent8cd7e8190bbfc8eeccc3bc97c81c41ce36ccc9d5 (diff)
downloadbcm5719-llvm-d578f1f87f04bb1d2c38a5ed39dae91410e5ae3f.tar.gz
bcm5719-llvm-d578f1f87f04bb1d2c38a5ed39dae91410e5ae3f.zip
Fix problem with llvm-config that prevented JIT from being used on x86_64
systems. llvm-svn: 35416
Diffstat (limited to 'llvm/tools')
-rw-r--r--llvm/tools/llvm-config/llvm-config.in.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/tools/llvm-config/llvm-config.in.in b/llvm/tools/llvm-config/llvm-config.in.in
index 2f5af8a8582..a6cf5f82736 100644
--- a/llvm/tools/llvm-config/llvm-config.in.in
+++ b/llvm/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@};
OpenPOWER on IntegriCloud