Closed t-mat closed 11 years ago
Today, I've investigate clang 3.4-1 (svn183526-1) on Ubuntu (13.04).
std::thread
works fine.std::async
doesn't work. (Illegal Instruction (core dumped)
)
Add experimental branch implement-thread-pool
.
std::thread
insted of std::async
.http://www.reddit.com/r/cpp_questions/comments/1o9ug3/clang_and_async/
This is an issue with the intersection of the standard library and clang.
Works: /opt/llvm/3.3/bin/clang++ -gcc-toolchain /opt/gcc/4.8.1 -std=c++11 -I /opt/boost/1.54.0/include tst.cc Works: /opt/llvm/3.3/bin/clang++ -gcc-toolchain /opt/gcc/4.8.0 -std=c++11 -I /opt/boost/1.54.0/include tst.cc Fails: /opt/llvm/3.3/bin/clang++ -gcc-toolchain /opt/gcc/4.7.2 -std=c++11 -I /opt/boost/1.54.0/include tst.cc Fails: /opt/llvm/3.3/bin/clang++ -gcc-toolchain /opt/gcc/4.7.1 -std=c++11 -I /opt/boost/1.54.0/include tst.cc
36d8b52 fix the compile issue for clang. Now, we could compile with clang by the following command:
make CC=clang CXX=clang++
clang don't support
std::thread
on Linux and Windows. There are two solutions (same as #10)