summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFrank Willmore <frankwillmore@gmail.com>2020-07-08 15:57:09 -0500
committerGitHub <noreply@github.com>2020-07-08 13:57:09 -0700
commitb3fff20d1f57edcba75b4ddbc5d190443e431fd5 (patch)
tree591c8d1fb0a9851087da374ac7c01a05602d6c0a
parent8c4117367803fac989582550fc546323e3586862 (diff)
downloadspack-b3fff20d1f57edcba75b4ddbc5d190443e431fd5.tar.gz
spack-b3fff20d1f57edcba75b4ddbc5d190443e431fd5.tar.bz2
spack-b3fff20d1f57edcba75b4ddbc5d190443e431fd5.tar.xz
spack-b3fff20d1f57edcba75b4ddbc5d190443e431fd5.zip
enable flatcc to be built with gcc@9.X.X (#17430)
`gcc` 9 and above have more warnings that break the `flatcc` build by default, because `-Werror` is enabled. This loosens the build up so that we can build with more compilers in Spack. - [x] Add `-DFLATCC_ALLOW_WERROR=OFF` to `flatcc` CMake arguments Co-authored-by: Frank Willmore <willmore@anl.gov>
-rw-r--r--var/spack/repos/builtin/packages/flatcc/package.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/flatcc/package.py b/var/spack/repos/builtin/packages/flatcc/package.py
index ce3fc222fc..a9d3617c9b 100644
--- a/var/spack/repos/builtin/packages/flatcc/package.py
+++ b/var/spack/repos/builtin/packages/flatcc/package.py
@@ -37,6 +37,9 @@ class Flatcc(CMakePackage):
spec = self.spec
args = []
+ # allow flatcc to be built with more compilers
+ args.append('-DFLATCC_ALLOW_WERROR=OFF')
+
if '+shared' in spec:
args.append('-DBUILD_SHARED_LIBS=ON')
args.append('-DFLATCC_INSTALL=ON')