parent
d7d948db0d
commit
fb2cdd0fe2
8 changed files with 31 additions and 31 deletions
@ -1,14 +1,14 @@ |
||||
project('hidden symbol', 'c') |
||||
|
||||
if host_machine.system() == 'windows' |
||||
if host_machine.system() == 'windows' or host_machine.system() == 'cygwin' |
||||
cc = meson.get_compiler('c') |
||||
if cc.get_id() == 'gcc' |
||||
error('MESON_SKIP_TEST -fvisibility=hidden does not work on MinGW.') |
||||
error('MESON_SKIP_TEST -fvisibility=hidden does not work on MinGW or Cygwin.') |
||||
endif |
||||
endif |
||||
|
||||
l = shared_library('bob', 'bob.c', |
||||
symbol_visibility: 'hidden') |
||||
gnu_symbol_visibility: 'hidden') |
||||
|
||||
executable('bobuser', 'bobuser.c', |
||||
link_with: l) |
||||
|
Loading…
Reference in new issue