Exemplo n.º 1
0
 def _default(cmp_id, paths):
     operating_system, compiler_name, version = cmp_id
     compiler_cls = spack.compilers.class_for_compiler_name(compiler_name)
     spec = spack.spec.CompilerSpec(compiler_cls.name, version)
     paths = [paths.get(l, None) for l in ('cc', 'cxx', 'f77', 'fc')]
     compiler = compiler_cls(spec, operating_system, py_platform.machine(),
                             paths)
     return [compiler]
Exemplo n.º 2
0
 def _default_make_compilers(cmp_id, paths):
     operating_system, compiler_name, version = cmp_id
     compiler_cls = spack.compilers.class_for_compiler_name(compiler_name)
     spec = spack.spec.CompilerSpec(compiler_cls.name, version)
     paths = [paths.get(x, None) for x in ('cc', 'cxx', 'f77', 'fc')]
     target = archspec.cpu.host()
     compiler = compiler_cls(spec, operating_system, str(target.family),
                             paths)
     return [compiler]