diff options
Diffstat (limited to 'manual tests/9 nostdlib/meson.build')
-rw-r--r-- | manual tests/9 nostdlib/meson.build | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/manual tests/9 nostdlib/meson.build b/manual tests/9 nostdlib/meson.build new file mode 100644 index 0000000..ad5b7b9 --- /dev/null +++ b/manual tests/9 nostdlib/meson.build @@ -0,0 +1,14 @@ +project('own libc', 'c') + +# A simple project that uses its own libc. + +libc_proj = subproject('mylibc') +libc_dep = libc_proj.get_variable('mylibc_dep') + +exe = executable('selfcontained', 'prog.c', + c_args : '-nostdlib', + link_args : '-nostdlib', + dependencies : libc_dep, +) + +test('standalone test', exe) |