[PATCH] Teach zorg to support cmake and modules for Clang builders

Richard Smith richard at metafoo.co.uk
Fri Aug 15 12:52:46 PDT 2014


Hi chapuni,

Adds `modules=` and `cmake=` keyword arguments to `getClangBuildFactory`. Right now, the modules build requires a two-stage cmake-based bootstrap. To use this you'll need a modularized libc and libc++ in a place where the build will find them.

My modules buildbot is configured using this builder:

         {'name' : "clang-x86_64-linux-selfhost-rel",
          'slavenames' : ["localhost"],
          'builddir' : "clang-x86_64-linux-selfhost-rel",
          'factory' : ClangBuilder.getClangBuildFactory(triple='x86_64-pc-linux-gnu',
                                               useTwoStage=True,
                                               modules=True,
                                               clean=False,
                                               stage1_config='Release+Asserts',
                                               stage2_config='Release+Asserts',
                                               extra_configure_args=[
                                                   '-DCMAKE_C_COMPILER=/var/lib/buildbot/bin/clang',
                                                   '-DCMAKE_CXX_COMPILER=/var/lib/buildbot/bin/clang++',
                                                   '-DCMAKE_CXX_FLAGS=-stdlib=libc++',
                                               ],
                                               cmake='/var/lib/buildbot/bin/cmake')},

... and seems to work.

http://reviews.llvm.org/D4936

Files:
  zorg/buildbot/builders/ClangBuilder.py
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D4936.12570.patch
Type: text/x-patch
Size: 11698 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20140815/540471ad/attachment.bin>


More information about the llvm-commits mailing list