]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
sat compile : clean the build directory after a successful compilation unless the...
authorSerge Rehbinder <serge.rehbinder@cea.fr>
Wed, 9 Nov 2016 10:25:12 +0000 (11:25 +0100)
committerSerge Rehbinder <serge.rehbinder@cea.fr>
Wed, 9 Nov 2016 10:25:12 +0000 (11:25 +0100)
commands/compile.py

index 9a2d0956c73ebc5dc34f9ca2d9ab79c18c4a7936..cc82669f0a76fddc73a633671fa0c3753709a6e2 100644 (file)
@@ -368,6 +368,15 @@ def compile_all_products(sat, config, options, products_infos, logger):
                       verbose=0,
                       logger_add_link = logger)
             res += 1
+        else:
+            if not src.product.product_is_dev(p_info):
+                log_step(logger, header, "CLEAN BUILD")
+                sat.clean(config.VARS.application + 
+                          " --products " + p_name + 
+                          " --build",
+                          batch=True,
+                          verbose=0,
+                          logger_add_link = logger)
             
         # Log the result
         if res_prod > 0: