[PATCH] libc++: support NaCl when building thread.cpp
JF Bastien
jfb at chromium.org
Mon Dec 1 17:24:52 PST 2014
Hi dschuff, danalbert,
NaCl shouldn't include sysctl.h when trying to determine std::thread::hardware_concurrency, it should instead use sysconf(_SC_NPROCESSORS_ONLN) through unistd.h. No test needs to be changed, since hardware_concurrency.pass.cpp already tests that std::thread::hardware_concurrency > 0.
http://reviews.llvm.org/D6470
Files:
src/thread.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6470.16793.patch
Type: text/x-patch
Size: 660 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20141202/67c8d39a/attachment.bin>
More information about the cfe-commits
mailing list