meson: Don't make object files for dtrace on macOS
PATCH 1/1 meson: Don't make object files for dtrace on macOS
dtrace on macOS uses unresolved symbols with a special prefix to define probes [1], only headers should be generated for USDT (dtrace(1)). But it doesn't support backwards compatible no-op -G flag [2] and implicit build rules fail.
1. https://markmail.org/message/6grq2ygr5nwdwsnb
2. https://markmail.org/message/5xrxt2w5m42nojkz
--- trace/meson.build | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-)
This is an update of the previous patch that is no longer valid due to conversion of the build system to meson:
https://lists.gnu.org/archive/html/qemu-devel/2020-08/msg02493.html
trace/meson.build +8 -5
@@ -39,12 +39,15 @@ foreach dir : [ '.' ] + trace_events_subdirs output: fmt.format('trace-dtrace', 'h'), input: trace_dtrace, command: [ 'dtrace', '-o', '@OUTPUT@', '-h', '-s', '@INPUT@' ]) - trace_dtrace_o = custom_target(fmt.format('trace-dtrace', 'o'), - output: fmt.format('trace-dtrace', 'o'), - input: trace_dtrace, - command: [ 'dtrace', '-o', '@OUTPUT@', '-G', '-s', '@INPUT@' ]) + trace_ss.add(trace_dtrace_h) + if host_machine.system() != 'darwin' + trace_dtrace_o = custom_target(fmt.format('trace-dtrace', 'o'), + output: fmt.format('trace-dtrace', 'o'), + input: trace_dtrace, + command: [ 'dtrace', '-o', '@OUTPUT@', '-G', '-s', '@INPUT@' ]) + trace_ss.add(trace_dtrace_o) + endif - trace_ss.add(trace_dtrace_h, trace_dtrace_o) genh += trace_dtrace_h endif endforeach
Signature · 1 line
2.24.3 (Apple Git-128)
Quoted 8 lines · Roman Bolshakov
dtrace on macOS uses unresolved symbols with a special prefix to define probes [1], only headers should be generated for USDT (dtrace(1)). But it doesn't support backwards compatible no-op -G flag [2] and implicit build rules fail.
1. https://markmail.org/message/6grq2ygr5nwdwsnb
2. https://markmail.org/message/5xrxt2w5m42nojkz
Quoted 6 lines
Cc Daniel P. Berrangé <[email protected]>Cc Cameron Esfahani <[email protected]>Signed-off-by Roman Bolshakov <[email protected]>--- trace/meson.build | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-)
Regards,
Daniel
Signature · 3 lines
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :| |: https://libvirt.org -o- https://fstop138.berrange.com :| |: https://entangle-photo.org -o- https://www.instagram.com/dberrange :|
Quoted 9 lines · Daniel P. Berrangé
Quoted 8 lines · Roman Bolshakov
dtrace on macOS uses unresolved symbols with a special prefix to define probes [1], only headers should be generated for USDT (dtrace(1)). But it doesn't support backwards compatible no-op -G flag [2] and implicit build rules fail.
1. https://markmail.org/message/6grq2ygr5nwdwsnb
2. https://markmail.org/message/5xrxt2w5m42nojkz
Quoted 9 lines
Quoted 6 lines
Cc Daniel P. Berrangé <[email protected]>Cc Cameron Esfahani <[email protected]>Signed-off-by Roman Bolshakov <[email protected]>--- trace/meson.build | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-)Reviewed-by Daniel P. Berrangé <[email protected]>
Paolo, should it go through your meson-fixes tree?
Regards,
Roman
Yes, I have already queued it.
Paolo
Il mar 25 ago 2020, 11:04 Roman Bolshakov <[email protected]> ha scritto:
Quoted 26 lines · Daniel P. Berrangé
Quoted 9 lines · Roman Bolshakov
Quoted 8 lines
dtrace on macOS uses unresolved symbols with a special prefix to define probes [1], only headers should be generated for USDT (dtrace(1)). But it doesn't support backwards compatible no-op -G flag [2] and implicit build rules fail.
1. https://markmail.org/message/6grq2ygr5nwdwsnb
2. https://markmail.org/message/5xrxt2w5m42nojkzQuoted 9 lines
Quoted 6 lines
Cc Daniel P. Berrangé <[email protected]>Cc Cameron Esfahani <[email protected]>Signed-off-by Roman Bolshakov <[email protected]>--- trace/meson.build | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-)Reviewed-by Daniel P. Berrangé <[email protected]>Paolo, should it go through your meson-fixes tree?
Regards,
Roman