[PATCH] D9639: Do not include pthread.h and sched.h when threads are disabled
Jonathan Roelofs
jonathan at codesourcery.com
Tue Jul 14 15:06:14 PDT 2015
jroelofs added a comment.
I get away with not having the guard in <__mutex_base> because all the places where these two headers are used have:
#ifdef _LIBCPP_HAS_NO_THREADS
#error <thread> is not supported on this single threaded system
#else // !_LIBCPP_HAS_NO_THREADS
The one in mutex, I think, is a result of me not having rebased in a _long_ time, and the buildbot for it not testing exactly the same setup as me.
http://reviews.llvm.org/D9639
More information about the cfe-commits
mailing list