From 5f805edd4f985e0a931670b1b98a34c6a6528877 Mon Sep 17 00:00:00 2001 From: Serge Rehbinder Date: Wed, 9 Nov 2016 11:25:12 +0100 Subject: [PATCH] sat compile : clean the build directory after a successful compilation unless the product is in dev mode --- commands/compile.py | 9 +++++++++ 1 file changed, 9 insertions(+) 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: -- 2.39.2