chiark / gitweb /
Stop automatically adding warning flags and -Werror.
authorSimon Tatham <anakin@pobox.com>
Wed, 31 Mar 2021 17:44:44 +0000 (18:44 +0100)
committerSimon Tatham <anakin@pobox.com>
Wed, 31 Mar 2021 17:44:44 +0000 (18:44 +0100)
commit306fab356e357ef13578667b476abce706a55203
treeef4707e95236af0ad2e2d32280fd99d24f9fd1a6
parent76aa9619c07bc1a62fafa99e14dbd187ea9aa565
Stop automatically adding warning flags and -Werror.

It's better to be lax for normal users trying to build the puzzles
from source to actually run them. That way, warning changes in some
particular compiler I haven't seen yet won't break the build.

Instead, I've invented a cmake setting -DSTRICT=ON which turns on all
those flags. So I can build with them myself, to ensure the code is as
portable as possible. And that flag is set in Buildscr, so that my
official builds won't complete until that warning mode is satisfied.
Buildscr
cmake/platforms/unix.cmake