|
2 | 2 | specific_ss.add(files('control-target.c'))
|
3 | 3 |
|
4 | 4 | trace_events_files = []
|
| 5 | +dtrace = find_program('dtrace', required: 'CONFIG_TRACE_DTRACE' in config_host) |
5 | 6 | foreach dir : [ '.' ] + trace_events_subdirs
|
6 | 7 | trace_events_file = meson.source_root() / dir / 'trace-events'
|
7 | 8 | trace_events_files += [ trace_events_file ]
|
@@ -39,13 +40,13 @@ foreach dir : [ '.' ] + trace_events_subdirs
|
39 | 40 | trace_dtrace_h = custom_target(fmt.format('trace-dtrace', 'h'),
|
40 | 41 | output: fmt.format('trace-dtrace', 'h'),
|
41 | 42 | input: trace_dtrace,
|
42 |
| - command: [ 'dtrace', '-DSTAP_SDT_V2', '-o', '@OUTPUT@', '-h', '-s', '@INPUT@' ]) |
| 43 | + command: [ dtrace, '-DSTAP_SDT_V2', '-o', '@OUTPUT@', '-h', '-s', '@INPUT@' ]) |
43 | 44 | trace_ss.add(trace_dtrace_h)
|
44 | 45 | if host_machine.system() != 'darwin'
|
45 | 46 | trace_dtrace_o = custom_target(fmt.format('trace-dtrace', 'o'),
|
46 | 47 | output: fmt.format('trace-dtrace', 'o'),
|
47 | 48 | input: trace_dtrace,
|
48 |
| - command: [ 'dtrace', '-DSTAP_SDT_V2', '-o', '@OUTPUT@', '-G', '-s', '@INPUT@' ]) |
| 49 | + command: [ dtrace, '-DSTAP_SDT_V2', '-o', '@OUTPUT@', '-G', '-s', '@INPUT@' ]) |
49 | 50 | trace_ss.add(trace_dtrace_o)
|
50 | 51 | endif
|
51 | 52 |
|
|
0 commit comments