mirror of
https://gitlab.com/qemu-project/meson.git
synced 2025-07-03 07:14:18 +08:00

This switches some `shared_library()` calls to `library()` and adds one new CI matrix entries for -Ddefault_library={static, both}.
10 lines
339 B
Meson
10 lines
339 B
Meson
project('rust and c polyglot executable', 'c', 'rust')
|
|
|
|
if host_machine.system() == 'darwin'
|
|
error('MESON_SKIP_TEST: doesnt work right on macos, please fix!')
|
|
endif
|
|
|
|
l = shared_library('stuff', 'stuff.rs', rust_crate_type: 'cdylib', install : true)
|
|
e = executable('prog', 'prog.c', link_with : l, install : true)
|
|
test('polyglottest', e)
|