diff options
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/repos/builtin/packages/binutils/package.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/binutils/package.py b/var/spack/repos/builtin/packages/binutils/package.py index ca90f629e9..8533358020 100644 --- a/var/spack/repos/builtin/packages/binutils/package.py +++ b/var/spack/repos/builtin/packages/binutils/package.py @@ -91,3 +91,11 @@ class Binutils(AutotoolsPackage): for current_file in glob.glob(join_path(self.build_directory, 'bfd', '*.h')): install(current_file, extradir) + + 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'\ + and self.version <= ver('2.31.1'): + flags.append('-Wno-narrowing') + return (flags, None, None) |