summaryrefslogtreecommitdiff
path: root/test cases/failing build/2 hidden symbol/meson.build
blob: f7c38e353253702ebc02fd15ef06d4342d1d28ae (plain)
1
2
3
4
5
6
7
8
9
10
11
project('hidden symbol', 'c')

if host_machine.system() == 'windows' or host_machine.system() == 'cygwin'
  error('MESON_SKIP_TEST -fvisibility=hidden does not work for PE files.')
endif

l = shared_library('bob', 'bob.c',
  gnu_symbol_visibility: 'hidden')

executable('bobuser', 'bobuser.c',
  link_with: l)