]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Check the host system for dtrace on macOS
authorMichal Nowak <mnowak@isc.org>
Tue, 2 Jun 2026 09:36:31 +0000 (09:36 +0000)
committerMichal Nowak <mnowak@isc.org>
Tue, 30 Jun 2026 15:03:25 +0000 (17:03 +0200)
The macOS dtrace check used build_machine, breaking cross builds;
use host_machine like every other Darwin check.

Assisted-by: Claude:claude-opus-4-8
meson.build

index ad5fac58e9c041c805024da7709c73b0c60a402a..e9d039de8f7a0024aebdbc92457ee37bcbd6ec33 100644 (file)
@@ -956,7 +956,7 @@ dtrace_header = generator(
     arguments: ['-s', '@INPUT@', '-h', '-o', '@OUTPUT@'],
 )
 
-# Acutally, dtrace probes are still built with macOS.
+# Actually, dtrace probes are still built with macOS.
 # macOS flavored dtrace doesn't recognize the -G option and
 # only uses headers.
 #
@@ -964,8 +964,7 @@ dtrace_header = generator(
 # to be able to disable it. You can just not use the probes.
 config.set(
     'HAVE_DTRACE',
-    dtrace.full_path() != dtrace_shim
-    and build_machine.system() != 'darwin',
+    dtrace.full_path() != dtrace_shim and host_machine.system() != 'darwin',
 )
 cc.has_header('sys/sdt.h', required: tracing_opt)
 assert(