diff options
author | Douglas Gregor <dgregor@apple.com> | 2009-06-23 17:21:35 +0000 |
---|---|---|
committer | Douglas Gregor <dgregor@apple.com> | 2009-06-23 17:21:35 +0000 |
commit | bcba7f95c2c79eb6526b3729b08f9e881a11e858 (patch) | |
tree | d9fa569d85637e33354d7afa6d93b4cc55cd814d /autoconf | |
parent | 27a2dbbdf5cc74a12a9a849bd890da79af5aacd1 (diff) | |
download | llvm-bcba7f95c2c79eb6526b3729b08f9e881a11e858.tar.gz llvm-bcba7f95c2c79eb6526b3729b08f9e881a11e858.tar.bz2 llvm-bcba7f95c2c79eb6526b3729b08f9e881a11e858.tar.xz |
Work around build problem with OpenJDK, which defines X86 as a
macro. Fixes PR 4427. Patch by Xerxes RĂ„nby!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@73961 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf')
-rw-r--r-- | autoconf/configure.ac | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac index bd05891a9d..0abe234795 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -447,7 +447,8 @@ AC_SUBST(TARGETS_TO_BUILD,$TARGETS_TO_BUILD) # 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_NATIVE_ARCHTARGET="${LLVM_NATIVE_ARCH}Target" + AC_DEFINE_UNQUOTED(LLVM_NATIVE_ARCH,$LLVM_NATIVE_ARCHTARGET, [LLVM architecture name for the native architecture, if available]) fi done |