Moved searching of flags into get compilers in compilers_for_spec
This commit is contained in:
		@@ -254,17 +254,18 @@ def get_compilers(cspec):
 | 
			
		||||
            else:
 | 
			
		||||
                operating_system = None
 | 
			
		||||
 | 
			
		||||
            compilers.append(cls(cspec, operating_system, compiler_paths, mods, alias))
 | 
			
		||||
 | 
			
		||||
#ifdef NEW
 | 
			
		||||
            flags = {}
 | 
			
		||||
            for f in spack.spec.FlagMap.valid_compiler_flags():
 | 
			
		||||
                if f in items:
 | 
			
		||||
                    flags[f] = items[f]
 | 
			
		||||
        return cls(cspec, *compiler_paths, **flags)
 | 
			
		||||
#else /* not NEW */
 | 
			
		||||
        return compilers
 | 
			
		||||
#endif /* not NEW */
 | 
			
		||||
 | 
			
		||||
            compilers.append(cls(cspec, operating_system, compiler_paths, mods, alias, **flags))
 | 
			
		||||
 | 
			
		||||
##ifdef NEW
 | 
			
		||||
#        return cls(cspec, *compiler_paths, **flags)
 | 
			
		||||
##else /* not NEW */
 | 
			
		||||
#        return compilers
 | 
			
		||||
##endif /* not NEW */
 | 
			
		||||
 | 
			
		||||
    matches = set(find(compiler_spec, scope))
 | 
			
		||||
    compilers = []
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user