summaryrefslogtreecommitdiff
path: root/scripts/Makefile.kcsan
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2022-12-13 20:24:20 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2022-12-14 15:42:40 +0900
commit87d599fc3955e59b1ed30f350321a4be5353f945 (patch)
treef43f5dc1ec8a0e381d011c63f4f4989964c025eb /scripts/Makefile.kcsan
parent3d57e1b7b1d42d4040f0d993b66ff06beda02c54 (diff)
kbuild: ensure Make >= 3.82 is used
Documentation/process/changes.rst notes the minimal GNU Make version, but it is not checked anywhere. We could check $(MAKE_VERSION), but another simple way is to check $(.FEATURES) since the feature list always grows. GNU Make 3.81 expands $(.FEATURES) to: target-specific order-only second-expansion else-if archives jobserver check-symlink GNU Make 3.82 expands $(.FEATURES) to: target-specific order-only second-expansion else-if shortest-stem undefine archives jobserver check-symlink To ensure Make >= 3.82, you can check either 'shortest-stem' or 'undefine'. This way is not always possible. For example, Make 4.0 through 4.2 have the same set of $(.FEATURES). At that point, we will need to come up with a different approach. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nathan Chancellor <nathan@kernel.org> Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
Diffstat (limited to 'scripts/Makefile.kcsan')
0 files changed, 0 insertions, 0 deletions