[PATCH] D49709: [CUDA, buildbot] Install clang we've just built.

Artem Belevich via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 25 13:44:03 PDT 2018


This revision was automatically updated to reflect the committed changes.
Closed by commit rL337958: [CUDA, buildbot] Install clang we've just built. (authored by tra, committed by ).

Repository:
  rL LLVM

https://reviews.llvm.org/D49709

Files:
  zorg/trunk/zorg/buildbot/builders/CUDATestsuiteBuilder.py


Index: zorg/trunk/zorg/buildbot/builders/CUDATestsuiteBuilder.py
===================================================================
--- zorg/trunk/zorg/buildbot/builders/CUDATestsuiteBuilder.py
+++ zorg/trunk/zorg/buildbot/builders/CUDATestsuiteBuilder.py
@@ -49,6 +49,7 @@
     source_dir = 'llvm'   # Should match the one used in getClangCMakeBuildFactory.
     stage1_build_dir = 'stage1'  # Should match the one defined in getClangCMakeBuildFactory.
     stage2_build_dir = 'stage2'  # Should match the one defined in getClangCMakeBuildFactory.
+    install_dir = 'clang.install'
 
     if useTwoStage:
         clang_build_dir = stage2_build_dir
@@ -75,12 +76,28 @@
     cuda_test_env = {
         'PYTHONPATH': WithProperties("%(workdir)s/" + source_dir +
                                      "/utils/lit:${PYTHONPATH}"),
-        'PATH': WithProperties("%(workdir)s/" + clang_build_dir +
-                               "/bin:${PATH}"),
+        'DESTDIR': WithProperties("%(workdir)s/" + install_dir),
+        'PATH': WithProperties("%(workdir)s/" + install_dir +
+                               "/usr/local/bin:${PATH}"),
     }
     merged_env.update(cuda_test_env)
     ts_build_dir = 'test-suite-build'
 
+    f.addStep(
+        RemoveDirectory(name="Remove old clang install directory",
+                        dir=install_dir))
+
+    # Install clang into directory pointed by $DESTDIR
+    f.addStep(NinjaCommand(
+        name='ninja install clang',
+        targets=["install"],
+        jobs=jobs,
+        haltOnFailure=True,
+        description=split("installing clang"),
+        descriptionDone=split("Clang installation is done."),
+        workdir=clang_build_dir,
+        env=merged_env))
+
     # Completely remove test suite build dir.
     f.addStep(
         RemoveDirectory(name="Remove old test-suite build directory",


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D49709.157351.patch
Type: text/x-patch
Size: 1857 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180725/669dd548/attachment.bin>


More information about the llvm-commits mailing list