Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support clang #11

Closed
t-mat opened this issue Jun 9, 2013 · 4 comments
Closed

support clang #11

t-mat opened this issue Jun 9, 2013 · 4 comments

Comments

@t-mat
Copy link
Owner

t-mat commented Jun 9, 2013

clang don't support std::thread on Linux and Windows.
There are two solutions (same as #10)

@t-mat
Copy link
Owner Author

t-mat commented Jun 10, 2013

Today, I've investigate clang 3.4-1 (svn183526-1) on Ubuntu (13.04).

@t-mat
Copy link
Owner Author

t-mat commented Jun 19, 2013

Add experimental branch implement-thread-pool.

  • This branch only use std::thread insted of std::async.
  • It seems 5%~10% slower than original.

@t-mat
Copy link
Owner Author

t-mat commented Oct 17, 2013

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

@t-mat
Copy link
Owner Author

t-mat commented Oct 18, 2013

36d8b52 fix the compile issue for clang.
Now, we could compile with clang by the following command:

make CC=clang CXX=clang++

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant