[PATCH] Windows/Linux CMake builders for Hexagon using common getClangCMakeBuildFactory

Rick Foos rfoos at codeaurora.org
Wed Jan 7 08:44:36 PST 2015


Hi gkistanova, rengolin, zturner, chandlerc,

This depends on updates to getClangCMakeBuildFactory.

The builder definitions are examples of Linux and Windows(MSVC) builds using a single build factory.

REPOSITORY
  rL LLVM

http://reviews.llvm.org/D6867

Files:
  buildbot/osuosl/master/config/builders.py

Index: buildbot/osuosl/master/config/builders.py
===================================================================
--- buildbot/osuosl/master/config/builders.py
+++ buildbot/osuosl/master/config/builders.py
@@ -389,6 +389,62 @@
                                            '--target=hexagon-unknown-elf',
                                            '--enable-targets=hexagon'])},
 
+        {'name': "clang-msvc-x86_64",
+         'slavenames': ["hexagon-build-01"],
+         'builddir': "builddir\\clang-msvc-x86_64",
+         'factory': ClangBuilder.getClangCMakeBuildFactory(
+                    jobs=None,
+                    loadaverage=None,
+                    cmakeGenerator="Visual Studio 12",
+                    cmakeProjectfile="ALL_BUILD.vcxproj",
+                    # MSBuild command with user arguments.
+                    build_cmd=["MSBuild","/p:Configuration=RelWithDebInfo",
+                    "/maxcpucount", "ALL_BUILD.vcxproj"],
+                    build_install_cmd=["MSBuild","/p:Configuration=RelWithDebInfo",
+                    "/maxcpucount", "INSTALL.vcxproj"],
+                    build_check_cmd=["MSBuild","/p:Configuration=RelWithDebInfo",
+                    "/maxcpucount", "check-clang.vcxproj"],
+                    build_check_dir='stage1/tools/clang/test',
+
+                    # Phase 2 build with built Clang.
+                    cmakeGenerator2='Ninja',     
+                    cmakeProjectfile2='build.ninja',
+                    build_cmd2=['ninja'],
+                    build_install_cmd2=['ninja', 'install'],
+                    build_check_cmd2=['ninja', 'check-all'],
+
+                    # Multi-stage compilation
+                    useTwoStage=False,
+                    testStage1=True,
+                    stage1_config='RelWithDebInfo',
+                    stage2_config='RelWithDebInfo', 
+                    slave_envCmd=r""""%VS120COMNTOOLS%\vsvars32.bat" %PROCESSOR_ARCHITECTURE% & set""",
+                    slave_envCmd2=r"""set""",
+                    extra_cmake_args=[
+                    '-DLLVM_BUILD_RUNTIME:BOOL=OFF',
+                    '-DLIBCLANG_BUILD_STATIC=ON',
+                    '-DLLVM_ENABLE_PIC:BOOL=ON',
+                    '-DLLVM_MINIMAL_INSTALL:BOOL=ON',
+                    '-DLLVM_ENABLE_ASSERTIONS:BOOL=ON',
+                    '-DLLVM_ENABLE_STATS:BOOL=ON',
+                    '-DLLVM_LIT_ARGS:=--verbose --no-progress-bar --param build_config=Win32',
+                    '-DCMAKE_BUILD_TYPE=RelWithDebInfo',
+                    '-DLLVM_APPEND_VC_REV:BOOL=ON',
+                    "-DLLVM_TARGETS_TO_BUILD='Hexagon'"                     ],
+                     )},
+        {'name': "clang-cmake-hexagon-linux",
+         'slavenames':["hexagon-build-02"],
+         'builddir':"clang-cmake-hexagon-linux",
+         'factory' : ClangBuilder.getClangCMakeBuildFactory(
+                      jobs=32,
+                      loadaverage=32,
+                      clean=False,
+                      checkout_compiler_rt=False,
+                      useTwoStage=False,
+                      testStage1=True,
+                      env={'PATH':'/usr/lib/ccache:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin'},
+                      extra_cmake_args=["-DLLVM_TARGETS_TO_BUILD='Hexagon'"])},
+
         {'name' : "clang-aarch64-lnt",
          'slavenames' :["aarch64-qemu-lnt"],
          'builddir' :"clang-aarch64-lnt",

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D6867.17862.patch
Type: text/x-patch
Size: 3473 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150107/639fc695/attachment.bin>


More information about the llvm-commits mailing list