blob: 25de68f25fc1b2e16b09098cfb3e5a18ec99c14d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
project('self-contained', meson_version : '>= 1.3.0')
if not add_languages('c', native : false, required : false)
error('MESON_SKIP_TEST clang not installed')
endif
if not add_languages('rust', native : false, required : false)
error('MESON_SKIP_TEST Rust x86_64-unknown-linux-musl target not installed')
endif
if meson.get_compiler('c').find_library('libunwind', required : false).found()
error('MESON_SKIP_TEST libunwind is installed globally')
endif
lib = static_library('rust', 'lib.rs', rust_abi : 'c')
executable('exe', 'main.c', link_with : lib)
|