aboutsummaryrefslogtreecommitdiff
path: root/manual tests/9 nostdlib/meson.build
blob: ad5b7b9ba9a1569d08019b24fe32af51bbea69c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
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)