diff options
author | Eric Christopher <echristo@apple.com> | 2010-07-28 20:26:34 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2010-07-28 20:26:34 +0000 |
commit | 475b3d3856886450368095f0801c000eaaf4f5fd (patch) | |
tree | d52d603d4c847d88d3bb20d840e617a6622f2a8c /autoconf/configure.ac | |
parent | 138aa2a82bc6de611f28e51332fb0a30262a58e3 (diff) | |
download | external_llvm-475b3d3856886450368095f0801c000eaaf4f5fd.zip external_llvm-475b3d3856886450368095f0801c000eaaf4f5fd.tar.gz external_llvm-475b3d3856886450368095f0801c000eaaf4f5fd.tar.bz2 |
Use a C++ compiler for the atomic builtin check since we'll
be using a C++ compiler to build.
Patch by Török Edwin!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@109646 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'autoconf/configure.ac')
-rw-r--r-- | autoconf/configure.ac | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/autoconf/configure.ac b/autoconf/configure.ac index 9541b8a..0924a77 100644 --- a/autoconf/configure.ac +++ b/autoconf/configure.ac @@ -1355,6 +1355,9 @@ fi dnl atomic builtins are required for threading support. AC_MSG_CHECKING(for GCC atomic builtins) +dnl Since we'll be using these atomic builtins in C++ files we should test +dnl the C++ compiler. +AC_LANG_PUSH([C++]) AC_LINK_IFELSE( AC_LANG_SOURCE( [[int main() { @@ -1366,6 +1369,7 @@ AC_LINK_IFELSE( return 0; } ]]), + AC_LANG_POP([C++]) AC_MSG_RESULT(yes) AC_DEFINE(LLVM_MULTITHREADED, 1, Build multithreading support into LLVM), AC_MSG_RESULT(no) |