def flag_defaults(self):
    self.gen.h2('Compiler flag defaults')
    for flag in spack.spec.FlagMap.valid_compiler_flags():
        self.gen.fact(fn.flag_type(flag))
    self.gen.newline()
    compilers = all_compilers_in_config()
    for compiler in compilers:
        for (name, flags) in compiler.flags.items():
            for flag in flags:
                self.gen.fact(fn.compiler_version_flag(compiler.name, compiler.version, name, flag))
def flag_defaults(self):
    self.gen.h2('Compiler flag defaults')
    for flag in spack.spec.FlagMap.valid_compiler_flags():
        self.gen.fact(fn.flag_type(flag))
    self.gen.newline()
    compilers = all_compilers_in_config()
    for compiler in compilers:
        for (name, flags) in compiler.flags.items():
            for flag in flags:
                self.gen.fact(fn.compiler_version_flag(compiler.name, compiler.version, name, flag))