mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-20 23:51:29 -07:00
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.
This commit is contained in:
6
Buildscr
6
Buildscr
@ -26,7 +26,11 @@ in puzzles do perl -i -pe 's/Unidentified build/$(Version)/' osx/Info.plist
|
||||
|
||||
ifneq "$(NOICONS)" yes then
|
||||
# Run enough of a native Unix build to produce the various icons.
|
||||
in . do cmake -B build-icons puzzles
|
||||
# This also checks that the build completes in 'strict' mode (with
|
||||
# lots of warnings and -Werror), and triggers a build failure if
|
||||
# not.
|
||||
in . do cmake -B build-icons puzzles -DSTRICT=ON
|
||||
in build-icons do make -j$(nproc)
|
||||
in build-icons do make -j$(nproc) icons VERBOSE=1
|
||||
|
||||
# Copy the C icon files into the icons source subdirectory, for the
|
||||
|
Reference in New Issue
Block a user