forked from llvm-mirror/llvm
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Set ARCH to x86 on mixed 32/64-bit Linux systems.
Remove the explicit if OS = Darwin test around the setting of -m32/-m64. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@66765 91177308-0d34-0410-b5e6-96231b3b80d8
- Loading branch information
Showing
3 changed files
with
29 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# | ||
# Some Linux machines run a 64-bit kernel with a 32-bit userspace. 'uname -m' | ||
# shows these at x86_64, so in that case, ask the system 'gcc' what it thinks. | ||
# | ||
AC_DEFUN([AC_IS_LINUX_MIXED], | ||
[AC_CACHE_CHECK(for 32-bit userspace on 64-bit system,llvm_cv_linux_mixed, | ||
[ AC_LANG_PUSH([C]) | ||
AC_COMPILE_IFELSE([AC_LANG_PROGRAM( | ||
[[#ifndef __x86_64__ | ||
error: Not x86-64 even if uname says so! | ||
#endif | ||
]])], | ||
[llvm_cv_linux_mixed=no], | ||
[llvm_cv_linux_mixed=yes]) | ||
AC_LANG_POP([C]) | ||
]) | ||
]) |