Path: blob/main/french/aster/files/patch-check_compilers.py
16461 views
--- check_compilers.py.orig 2019-10-01 12:45:34 UTC1+++ check_compilers.py2@@ -215,7 +215,7 @@ class CONFIGURE_COMPILER:3opt_env.append('')45self.cfg['OPT_ENV'] = os.linesep.join(opt_env)6- self.AddToEnv(self.cfg['OPT_ENV'], verbose=False)7+ self.AddToEnv(self.cfg['OPT_ENV'], verbose=True)89def after_compilers(self):10"""After searching compilers, this allows to add libs to search11@@ -419,8 +419,7 @@ class GNU_COMPILER(CONFIGURE_COMPILER):12def after_compilers(self):13"""Define libs to search."""14# prefer always libstdc++.so to the static one15- self.libs.extend([('math', 'lapack'), ('math', 'blas'),16- ('cxx', ['libstdc++' + self._ext_shared, 'libstdc++' + self._ext_static]),])17+ self.libs.extend([('math', 'lapack'), ('math', 'blas'),])1819def add_on(self):20"""After searching compilers, libs... search again other bin or lib."""21@@ -813,7 +812,7 @@ class COMPILER_MANAGER:22"""Return config dict."""23return self.config.get(product, self.config.get('__main__')).cfg2425- def switch_in_dep(self, dependency_object, product, system=None, verbose=False):26+ def switch_in_dep(self, dependency_object, product, system=None, verbose=True):27"""Change 'cfg' attribute of the dependency_object.28"""29__dbgsw = False30@@ -921,7 +920,7 @@ class COMPILER_MANAGER:31cfg['OPT_ENV'] += compiler_cfg.get('OPT_ENV', '')32cfg['OPT_ENV'] = cfg['OPT_ENV'].strip()33if system:34- system.AddToEnv(cfg['OPT_ENV'], verbose=False)35+ system.AddToEnv(cfg['OPT_ENV'], verbose=True)36if __dbgsw:37print(' new=%s' % cfg['OPT_ENV'])38394041