git: 2bfa4de98cf7 - stable/15 - 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:25:42 UTC
The branch stable/15 has been updated by ngie:

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

commit 2bfa4de98cf7da0fd6f90ae1ba344cb363b10df3
Author:     Enji Cooper <ngie@FreeBSD.org>
AuthorDate: 2026-09-22 02:34:33 +0000
Commit:     Enji Cooper <ngie@FreeBSD.org>
CommitDate: 2026-11-22 19:36:52 +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 63a1b17ea19f..9a9f686b7752 100644
--- a/share/mk/src.opts.mk
+++ b/share/mk/src.opts.mk
@@ -435,6 +435,7 @@ MK_MITKRB5:=	no
 # if it is off.
 .if ${MK_DTRACE} == "no"
 MK_CTF:=	no
+MK_DTRACE_TESTS:= no
 .endif
 
 .if ${MK_MAIL} == "no"