summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorBrian Homerding <homerdin@gmail.com>2019-07-15 23:42:02 -0500
committerAdam J. Stewart <ajstewart426@gmail.com>2019-07-15 23:42:02 -0500
commit36919ba8592e752724c19900132fde38760d2506 (patch)
tree95913a302222d08a383c3a1a507ea968f1c969e4 /var
parent2cfbde17370733bfebfbd8b4100b76764fe6d751 (diff)
downloadspack-36919ba8592e752724c19900132fde38760d2506.tar.gz
spack-36919ba8592e752724c19900132fde38760d2506.tar.bz2
spack-36919ba8592e752724c19900132fde38760d2506.tar.xz
spack-36919ba8592e752724c19900132fde38760d2506.zip
binutils: Adding Clang to narrowing conversion error workaround (#12029)
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/binutils/package.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/var/spack/repos/builtin/packages/binutils/package.py b/var/spack/repos/builtin/packages/binutils/package.py
index 8533358020..d86515cc43 100644
--- a/var/spack/repos/builtin/packages/binutils/package.py
+++ b/var/spack/repos/builtin/packages/binutils/package.py
@@ -95,7 +95,8 @@ class Binutils(AutotoolsPackage):
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)