Skip to content

Commit

Permalink
Use suggestion from nirbheek mesonbuild/meson#5090
Browse files Browse the repository at this point in the history
  • Loading branch information
codyps committed Mar 15, 2019
1 parent 6ce51ee commit 904ffb1
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,14 @@ myplugin = shared_module('myplugin',
include_directories: plugin_inc
)

test_1 = executable('test-1', 'test-1.c',
myplugin_dep = custom_target('myplugin',
input: myplugin,
output: 'myplugin_dep.h',
command: ['echo'],
capture: true
)

test_1 = executable('test-1', 'test-1.c', myplugin_dep,
c_args: [ '-fplugin=' + myplugin.full_path() ],
native: true,
)
Expand Down

0 comments on commit 904ffb1

Please sign in to comment.