def compiler_supports_os(self):
    compilers_yaml = spack.compilers.all_compilers_config()
    for entry in compilers_yaml:
        c = spack.spec.CompilerSpec(entry['compiler']['spec'])
        operating_system = entry['compiler']['operating_system']
        self.gen.fact(fn.compiler_supports_os(c.name, c.version, operating_system))
def compiler_supports_os(self):
    compilers_yaml = spack.compilers.all_compilers_config()
    for entry in compilers_yaml:
        c = spack.spec.CompilerSpec(entry['compiler']['spec'])
        operating_system = entry['compiler']['operating_system']
        self.gen.fact(fn.compiler_supports_os(c.name, c.version, operating_system))