From: Serge Rehbinder Date: Wed, 9 Nov 2016 10:25:12 +0000 (+0100) Subject: sat compile : clean the build directory after a successful compilation unless the... X-Git-Tag: 5.0.0a1~54 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5f805edd4f985e0a931670b1b98a34c6a6528877;p=tools%2Fsat.git sat compile : clean the build directory after a successful compilation unless the product is in dev mode --- diff --git a/commands/compile.py b/commands/compile.py index 9a2d095..cc82669 100644 --- a/commands/compile.py +++ b/commands/compile.py @@ -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: