The crate-type in this case should have been `cdylib` since it's linking via C, rather than the default `dylib` that is meant for linking via `rustc`.pull/2938/head
parent
1d81efb03d
commit
281294286e
1 changed files with 1 additions and 1 deletions
@ -1,5 +1,5 @@ |
||||
project('rust and c polyglot executable', 'c', 'rust') |
||||
|
||||
l = library('stuff', 'stuff.rs', install : true) |
||||
l = library('stuff', 'stuff.rs', rust_crate_type: 'cdylib', install : true) |
||||
e = executable('prog', 'prog.c', link_with : l, install : true) |
||||
test('polyglottest', e) |
||||
|
Loading…
Reference in new issue