[zorg] r300996 - Add a -noinstall option to the build.py script to allow building only.

Mehdi Amini via llvm-commits llvm-commits at lists.llvm.org
Fri Apr 21 09:16:25 PDT 2017


Author: mehdi_amini
Date: Fri Apr 21 11:16:25 2017
New Revision: 300996

URL: http://llvm.org/viewvc/llvm-project?rev=300996&view=rev
Log:
Add a -noinstall option to the build.py script to allow building only.

Without this option, --cmake-build-target is somehow useless since it'll
build it all during the install stage anyway.

Modified:
    zorg/trunk/zorg/jenkins/build.py

Modified: zorg/trunk/zorg/jenkins/build.py
URL: http://llvm.org/viewvc/llvm-project/zorg/trunk/zorg/jenkins/build.py?rev=300996&r1=300995&r2=300996&view=diff
==============================================================================
--- zorg/trunk/zorg/jenkins/build.py (original)
+++ zorg/trunk/zorg/jenkins/build.py Fri Apr 21 11:16:25 2017
@@ -256,9 +256,13 @@ def cmake_builder(target):
         passed_target = conf.cmake_build_targets
         build_target = passed_target if passed_target else ['all']
         run_cmd(conf.builddir(), ninja_cmd + build_target)
-        header("Ninja install")
-        run_cmd(conf.builddir(), ninja_cmd + ['install'])
-        build_upload_artifact()
+        footer()
+        if conf.noinstall:
+            header("Skip install")
+        else:
+            header("Ninja install")
+            run_cmd(conf.builddir(), ninja_cmd + ['install'])
+            build_upload_artifact()
         footer()
     # Run all the test targets.
     ninja_cmd.extend(['-k', '0'])
@@ -986,8 +990,9 @@ def parse_args():
     parser.add_argument('--compiler-flag', dest='compiler_flags',
                         action='append', default=[],
                         help='Set an arbitrary compiler flag')
-    parser.add_argument('--noupload', dest='noupload',
-                        action='store_true')
+    parser.add_argument('--noupload', dest='noupload', action='store_true')
+    parser.add_argument('--noinstall', dest='noinstall', action='store_true',
+                        help="Disable the install stage, build only.")
     parser.add_argument('--globalisel', dest='globalisel',
                         action='store_true', help="Turn on the experimental"
                                                   " GlobalISel CMake flag.")




More information about the llvm-commits mailing list