llvm.org GIT mirror llvm / 475b3d3
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 Eric Christopher 9 years ago
1 changed file(s) with 4 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
13541354
13551355 dnl atomic builtins are required for threading support.
13561356 AC_MSG_CHECKING(for GCC atomic builtins)
1357 dnl Since we'll be using these atomic builtins in C++ files we should test
1358 dnl the C++ compiler.
1359 AC_LANG_PUSH([C++])
13571360 AC_LINK_IFELSE(
13581361 AC_LANG_SOURCE(
13591362 [[int main() {
13651368 return 0;
13661369 }
13671370 ]]),
1371 AC_LANG_POP([C++])
13681372 AC_MSG_RESULT(yes)
13691373 AC_DEFINE(LLVM_MULTITHREADED, 1, Build multithreading support into LLVM),
13701374 AC_MSG_RESULT(no)