Debian Codegraph @

test cases/rust/41 shared-lib-no-static-libc/meson.build

raw
1 project('shared-lib-no-static-libc', meson_version : '>= 1.3.0')
2
3 if not add_languages('c', native : false, required : false)
4 error('MESON_SKIP_TEST clang not installed')
5 endif
6
7 if not add_languages('rust', native : false, required : false)
8 error('MESON_SKIP_TEST Rust x86_64-unknown-linux-musl target not installed')
9 endif
10
11 rust_lib = static_library('hello', 'lib.rs', rust_abi : 'c')
12
13 shared = shared_library('hello_shared', 'shim.c',
14 link_whole : rust_lib)
15
16 exe = executable('exe', 'main.c',
17 link_with : shared)
18
19 test('no-embedded-libc', exe)