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:
parent
8c41173678
commit
b3fff20d1f
@ -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')
|
||||
|
Loading…
Reference in New Issue
Block a user