Build without -Werror

It makes sense for upstream CI and with carefully controlled compiler
versions, but it is too strict for downstream use.
This commit is contained in:
Benjamin A. Beasley 2023-01-19 09:07:52 -05:00
parent 7b6b06a00c
commit 3d37155cde
1 changed files with 4 additions and 0 deletions

View File

@ -1,5 +1,8 @@
# Build HTML docs from markdown using pandoc?
%bcond_without html_docs
# Normally, treating warnings as errors is too strict for downstream builds.
# Its nice to be able to turn it on, though.
%bcond_with werror
Name: gn
# Upstream uses the number of commits in the git history as the version number.
@ -123,6 +126,7 @@ AR='gcc-ar'; export AR
# not with g++. We do get LTO on Fedora anyway, since we respect the
# distributions build flags.
%{python3} build/gen.py \
%{?!with_werror:--allow-warnings} \
--no-last-commit-position \
--no-strip \
--no-static-libstdc++