binutils: Adding Clang to narrowing conversion error workaround (#12029)
This commit is contained in:
		 Brian Homerding
					Brian Homerding
				
			
				
					committed by
					
						 Adam J. Stewart
						Adam J. Stewart
					
				
			
			
				
	
			
			
			 Adam J. Stewart
						Adam J. Stewart
					
				
			
						parent
						
							2cfbde1737
						
					
				
				
					commit
					36919ba859
				
			| @@ -95,7 +95,8 @@ def install_headers(self): | ||||
|     def flag_handler(self, name, flags): | ||||
|         # To ignore the errors of narrowing conversions for | ||||
|         # the Fujitsu compiler | ||||
|         if name == 'cxxflags' and self.compiler.name == 'fj'\ | ||||
|         if name == 'cxxflags'\ | ||||
|            and (self.compiler.name == 'fj' or self.compiler.name == 'clang')\ | ||||
|            and self.version <= ver('2.31.1'): | ||||
|             flags.append('-Wno-narrowing') | ||||
|         return (flags, None, None) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user