t-mat / lz4mt

Platform independent, multi-threading implementation of lz4 stream in C++11
Other
199 stars 47 forks source link

support clang #11

Closed t-mat closed 11 years ago

t-mat commented 11 years ago

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

t-mat commented 11 years ago

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

t-mat commented 11 years ago

Add experimental branch implement-thread-pool.

t-mat commented 11 years ago

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 commented 11 years ago

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

make CC=clang CXX=clang++