git: b68410c40e21 - stable/14 - src.opts.mk: force the Dtrace tests off if ${MK_DTRACE} == no

From: Enji Cooper <ngie_at_FreeBSD.org>
Date: Sun, 22 Nov 2026 21:28:37 UTC
The branch stable/14 has been updated by ngie:

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

commit b68410c40e2162195734a37ee501696dff6da4b0
Author:     Enji Cooper <ngie@FreeBSD.org>
AuthorDate: 2026-09-22 02:34:33 +0000
Commit:     Enji Cooper <ngie@FreeBSD.org>
CommitDate: 2026-11-22 21:28:34 +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
    
    (cherry picked from commit f6db138f97b78e641b07a7c3695ccf62b0f42f28)
---
 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 30ff25ecb1e6..662c900fbf9f 100644
--- a/share/mk/src.opts.mk
+++ b/share/mk/src.opts.mk
@@ -413,6 +413,7 @@ MK_BSDINSTALL:=	no
 
 .if ${MK_DTRACE} == "no"
 MK_CTF:=	no
+MK_DTRACE_TESTS:= no
 .endif
 
 .if ${MK_MAIL} == "no"