[PATCH] libc++: support NaCl when building thread.cpp
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 660 bytes
Desc: not available
More information about the cfe-commits