diff options
author | Kyle Evans <kevans@FreeBSD.org> | 2020-09-18 17:17:46 +0000 |
---|---|---|
committer | Kyle Evans <kevans@FreeBSD.org> | 2020-09-18 17:17:46 +0000 |
commit | fe815331bb40604ba31312acf7e4619674631777 (patch) | |
tree | c81780275dd6e888c4f23a7ee44cd37f687bc5f8 /Makefile.inc1 | |
parent | f9cc8410e16ab0870c218b7a9541464ef10a8d34 (diff) | |
download | src-fe815331bb40604ba31312acf7e4619674631777.tar.gz src-fe815331bb40604ba31312acf7e4619674631777.zip |
build: provide a default WARNS for all in-tree builds
The current default is provided in various Makefile.inc in some top-level
directories and covers a good portion of the tree, but doesn't cover parts
of the build a little deeper (e.g. libcasper).
Provide a default in src.sys.mk and set WARNS to it in bsd.sys.mk if that
variable is defined. This lets us relatively cleanly provide a default WARNS
no matter where you're building in the src tree without breaking things
outside of the tree.
Crunchgen has been updated as a bootstrap tool to work on this change
because it needs r365605 at a minimum to succeed. The cleanup necessary to
successfully walk over this change on WITHOUT_CLEAN builds has been added.
There is a supplemental project to this to list all of the warnings that are
encountered when the environment has WARNS=6 NO_WERROR=yes:
https://warns.kevans.dev -- this project will hopefully eventually go away
in favor of CI doing a much better job than it.
Reviewed by: emaste, brooks, ngie (all earlier version)
Reviewed by: emaste, arichardson (depend-cleanup.sh change)
Differential Revision: https://reviews.freebsd.org/D26455
Notes
Notes:
svn path=/head/; revision=365887
Diffstat (limited to 'Makefile.inc1')
-rw-r--r-- | Makefile.inc1 | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/Makefile.inc1 b/Makefile.inc1 index 46cecc5a9d1f..b7a1c0476d77 100644 --- a/Makefile.inc1 +++ b/Makefile.inc1 @@ -2226,12 +2226,9 @@ _crunchide= usr.sbin/crunch/crunchide _bootstrap_tools_links+=crunchide .endif -# r285986 crunchen: use STRIPBIN rather than STRIP -# 1100113: Support MK_AUTO_OBJ -# 1200006: META_MODE fixes -.if ${BOOTSTRAPPING} < 1100078 || \ - (${MK_AUTO_OBJ} == "yes" && ${BOOTSTRAPPING} < 1100114) || \ - (${MK_META_MODE} == "yes" && ${BOOTSTRAPPING} < 1200006) +# 1300115: Higher WARNS fixes +.if ${BOOTSTRAPPING} < 1202502 || \ + (${BOOTSTRAPPING} > 1300000 && ${BOOTSTRAPPING} < 1300115) _crunchgen= usr.sbin/crunch/crunchgen .else _bootstrap_tools_links+=crunchgen |