spack compiler info: quick fix for failing command (#14928)
fixes #14927
This commit is contained in:
		 Massimiliano Culpo
					Massimiliano Culpo
				
			
				
					committed by
					
						 GitHub
						GitHub
					
				
			
			
				
	
			
			
			 GitHub
						GitHub
					
				
			
						parent
						
							c607288a7c
						
					
				
				
					commit
					8c05221bc6
				
			| @@ -142,7 +142,7 @@ def compiler_info(args): | |||||||
|                 for flag, flag_value in iteritems(c.flags): |                 for flag, flag_value in iteritems(c.flags): | ||||||
|                     print("\t\t%s = %s" % (flag, flag_value)) |                     print("\t\t%s = %s" % (flag, flag_value)) | ||||||
|             if len(c.environment) != 0: |             if len(c.environment) != 0: | ||||||
|                 if len(c.environment['set']) != 0: |                 if len(c.environment.get('set', {})) != 0: | ||||||
|                     print("\tenvironment:") |                     print("\tenvironment:") | ||||||
|                     print("\t    set:") |                     print("\t    set:") | ||||||
|                     for key, value in iteritems(c.environment['set']): |                     for key, value in iteritems(c.environment['set']): | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user