blob: ead2ff509fc23575f1ad8b9adc236bb381bf7f42 [file] [log] [blame]
project('extra args', 'swift')
trace_fname = 'trace.json'
lib = static_library('main',
'main.swift',
swift_args: [
'-emit-loaded-module-trace',
'-emit-loaded-module-trace-path', '../' + trace_fname
],
)
custom_target('trace_check',
output: trace_fname,
command: ['cat', '@OUTPUT@'],
depends: lib,
build_always: true,
)