[PATCH] [libc++] Allow libc++ to be built on systems without POSIX threads

Jonathan Roelofs jonathan at codesourcery.com
Tue Sep 2 14:38:15 PDT 2014



On 8/29/14, 12:10 PM, Dmitri Gribenko wrote:
> On Fri, Aug 29, 2014 at 7:09 PM, Dmitri Gribenko <gribozavr at gmail.com> wrote:
>> On Fri, Aug 29, 2014 at 6:23 PM, Jonathan Roelofs
>> <jonathan at codesourcery.com> wrote:
>>>
>>>
>>> On 8/29/14, 10:59 AM, Dan Albert wrote:
>>>>
>>>> I'm a little bit worried about the no-threads build bit-rotting (if any of
>>>> us
>>>> forget to wrap something in #ifndef _LIBCPP_HAS_NO_THREADS).
>>>
>>> I'm a bit worried about that too, but I am willing to maintain it.
>>>
>>>
>>>> Should we have a buildbot set up to build this configuration?
>>>
>>> I would appreciate having one, but I can't host it at the moment.
>>
>> Feel free to assign this on the same builder as the existing libcxx buildbot.
>
> This one http://lab.llvm.org:8011/builders/libcxx-libcxxabi-x86_64-linux-debian
Is the attached patch what you had in mind?


Cheers,

Jon
>
> Dmitri
>

-- 
Jon Roelofs
jonathan at codesourcery.com
CodeSourcery / Mentor Embedded
-------------- next part --------------
Index: buildbot/osuosl/master/config/builders.py
===================================================================
--- buildbot/osuosl/master/config/builders.py	(revision 216948)
+++ buildbot/osuosl/master/config/builders.py	(working copy)
@@ -663,6 +663,14 @@
              env={'CC': 'clang', 'CXX': 'clang++'}),
          'category': 'libcxx'},
 
+        {'name': 'libcxx-libcxxabi-singlethreaded-x86_64-linux-debian',
+         'slavenames': ['gribozavr4'],
+         'builddir': 'libcxx-libcxxabi-singlethreaded-x86_64-linux-debian',
+         'factory': LibcxxAndAbiBuilder.getLibcxxAndAbiBuilder(
+             env={'CC': 'clang', 'CXX': 'clang++',
+                  'CXXFLAGS' : '-D_LIBCPP_HAS_NO_THREADS -DLIBCXXABI_SINGLE_THREADED=1'}),
+         'category': 'libcxx'},
+
         {'name': 'libcxx-libcxxabi-x86_64-linux-ubuntu',
          'slavenames': ['ericwf-buildslave'],
          'builddir' : 'libcxx-libcxxabi-x86_64-linux-ubuntu',


More information about the cfe-commits mailing list