]> SALOME platform Git repositories - tools/sat.git/commitdiff
Salome HOME
compilation : show something for native products
authorSerge Rehbinder <serge.rehbinder@cea.fr>
Tue, 20 Sep 2016 10:15:20 +0000 (12:15 +0200)
committerSerge Rehbinder <serge.rehbinder@cea.fr>
Tue, 20 Sep 2016 10:15:20 +0000 (12:15 +0200)
commands/compile.py

index ab4e674b42687950a375fcbc8d9d652cc7d62ead..dc54ce6391c84ae093bdff1143841b70ac4c7451 100644 (file)
@@ -80,7 +80,6 @@ def get_products_list(options, cfg, logger):
     products_infos = src.product.get_products_infos(products, cfg)
     
     products_infos = [pi for pi in products_infos if not(
-                                     src.product.product_is_native(pi[1]) or 
                                      src.product.product_is_fixed(pi[1]))]
     
     return products_infos
@@ -290,13 +289,19 @@ def compile_all_products(sat, config, options, products_infos, logger):
         logger.write("\n", 4, False)
         logger.flush()
 
-        # Do nothing if he product is not compilable
+        # Do nothing if the product is not compilable
         if ("properties" in p_info and "compilation" in p_info.properties and 
                                             p_info.properties.compilation == "no"):
             log_step(logger, header, "ignored")
             logger.write("\n", 3, False)
             continue
 
+        # Do nothing if the product is native
+        if src.product.product_is_native(p_info):
+            log_step(logger, header, "native")
+            logger.write("\n", 3, False)
+            continue
+
         # Clean the build and the install directories 
         # if the corresponding options was called
         if options.clean_all: