summaryrefslogtreecommitdiff
path: root/Mk/Uses/meson.mk
diff options
context:
space:
mode:
authorJan Beich <jbeich@FreeBSD.org>2023-03-20 13:30:11 +0000
committerJan Beich <jbeich@FreeBSD.org>2023-04-01 08:44:11 +0000
commit3507fb3e4ec9d733a3be2d41cb19adb060c5e43f (patch)
tree680d0d995e1224e40866b3373e329a8fbf6f2293 /Mk/Uses/meson.mk
parentwww/ilias: Update to 8.0 (diff)
Mk/Uses/meson.mk: add --auto-features=enabled to improve determinism
PR: 270361 Inspired by: Alpine, Arch, NixPkgs, OpenBSD, Void Exp-run by: antoine
Diffstat (limited to 'Mk/Uses/meson.mk')
-rw-r--r--Mk/Uses/meson.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/Mk/Uses/meson.mk b/Mk/Uses/meson.mk
index 043c6e1e4c7a..f58addcb230a 100644
--- a/Mk/Uses/meson.mk
+++ b/Mk/Uses/meson.mk
@@ -36,6 +36,10 @@ CONFIGURE_ARGS+= --prefix ${PREFIX} \
--mandir man \
--infodir ${INFO_PATH}
+# Enable all optional features to make builds deterministic. Consumers can
+# expose those as port OPTIONS_* or explicitly pass -D<option>=disabled
+CONFIGURE_ARGS+= --auto-features=enabled
+
# Disable color output. Meson forces it on by default, Ninja
# strips it before it goes to the log, but Samurai does not, so we
# might end up with ANSI escape sequences in the logs.