def __init__(self, abstract_spec=None): if Concretizer.check_for_compiler_existence is None: Concretizer.check_for_compiler_existence = not config.get( 'config:install_missing_compilers', False ) self.abstract_spec = abstract_spec self._adjust_target_answer_generator = None
def update_compiler(prefix, rpaths): compilers_config = spack_config.get('compilers') for compiler_entry in compilers_config: if compiler_entry['compiler']['paths']['cc'].startswith(prefix): print('found target compiler: {0}'.format( compiler_entry['compiler']['spec'])) compiler_entry['compiler']['extra_rpaths'].append(rpaths) spack_config.update_config('compilers', compilers_config)
def __init__(self): # controls whether we check that compiler versions actually exist # during concretization. Used for testing and for mirror creation self.check_for_compiler_existence = not config.get( 'config:install_missing_compilers', False)