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>
This commit is contained in:
Frank Willmore 2020-07-08 15:57:09 -05:00 committed by GitHub
parent 8c41173678
commit b3fff20d1f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,6 +37,9 @@ def cmake_args(self):
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')