git: f6db138f97b7 - main - src.opts.mk: force the Dtrace tests off if ${MK_DTRACE} == no

From: Enji Cooper <ngie_at_FreeBSD.org>
Date: Tue, 22 Sep 2026 02:53:32 UTC
The branch main has been updated by ngie:

URL: https://cgit.FreeBSD.org/src/commit/?id=f6db138f97b78e641b07a7c3695ccf62b0f42f28

commit f6db138f97b78e641b07a7c3695ccf62b0f42f28
Author:     Enji Cooper <ngie@FreeBSD.org>
AuthorDate: 2026-09-22 02:34:33 +0000
Commit:     Enji Cooper <ngie@FreeBSD.org>
CommitDate: 2026-09-22 02:53:03 +0000

    src.opts.mk: force the Dtrace tests off if ${MK_DTRACE} == no
    
    Prior to this change Dtrace's tests could be enabled even if
    `${MK_DTRACE}` == no. Allowing this doesn't make sense so remove the
    tests if `${MK_DTRACE}` is also disabled.
    
    MFC after:      2 weeks
---
 share/mk/src.opts.mk | 1 +
 1 file changed, 1 insertion(+)

diff --git a/share/mk/src.opts.mk b/share/mk/src.opts.mk
index 13136b174860..0c6b97461b5e 100644
--- a/share/mk/src.opts.mk
+++ b/share/mk/src.opts.mk
@@ -433,6 +433,7 @@ MK_MITKRB5:=	no
 # if it is off.
 .if ${MK_DTRACE} == "no"
 MK_CTF:=	no
+MK_DTRACE_TESTS:= no
 .endif
 
 .if ${MK_MAIL} == "no"