Add Option to Skip Install
[oota-llvm.git] / utils / llvmbuild
index 38f4f748dccabee5216ec311a39ee61b1a7385f1..0b43a0c508674f4060439f6f9e636d533b089528 100755 (executable)
@@ -191,6 +191,8 @@ def add_options(parser):
                       help=("Force reconfigure of all components"))
     parser.add_option("--no-gcc", default=False, action="store_true",
                       help=("Do not build dragonegg and gcc"))
+    parser.add_option("--no-install", default=False, action="store_true",
+                      help=("Do not do installs"))
     return
 
 def check_options(parser, options, valid_builds):
@@ -655,10 +657,11 @@ class Builder(threading.Thread):
                       make_flags[comp_key][build],
                       make_env[comp_key][build])
 
-            self.logger.info("Installing " + component + " in " + installdir)
-            self.make(component, srcdir, builddir,
-                      make_install_flags[comp_key][build],
-                      make_install_env[comp_key][build])
+            if (not self.options.no_install):
+                self.logger.info("Installing " + component + " in " + installdir)
+                self.make(component, srcdir, builddir,
+                          make_install_flags[comp_key][build],
+                          make_install_env[comp_key][build])
 
             self.logger.info("Testing " + component + " in " + builddir)
             self.make(component, srcdir, builddir,