diff --git a/gn.spec b/gn.spec index 6fb3787..aa515e5 100644 --- a/gn.spec +++ b/gn.spec @@ -118,10 +118,13 @@ CC='gcc'; export CC CXX='g++'; export CXX AR='gcc-ar'; export AR %set_build_flags +# Treating warnings as errors is too strict for downstream builds. +# # Both --use-icf and --use-lto add compiler flags that only work with clang++, # not with g++. We do get LTO on Fedora anyway, since we respect the # distribution’s build flags. %{python3} build/gen.py \ + --allow-warnings \ --no-last-commit-position \ --no-strip \ --no-static-libstdc++