binutils: Adding Clang to narrowing conversion error workaround (#12029)

This commit is contained in:
Brian Homerding 2019-07-15 23:42:02 -05:00 committed by Adam J. Stewart
parent 2cfbde1737
commit 36919ba859

View File

@ -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)