Merge branch 'meson-macos' into 'master'
meson: Fix build on macos Closes #18 See merge request federicomenaquintero/bzip2!22
This commit is contained in:
commit
29a935d589
@ -20,7 +20,8 @@ if host_machine.system() == 'windows'
|
||||
endif
|
||||
|
||||
c_args = []
|
||||
if cc.has_function_attribute('visibility')
|
||||
# The or is a workaround for https://github.com/mesonbuild/meson/issues/5530
|
||||
if cc.has_function_attribute('visibility') or (cc.get_id() == 'clang' and host_machine.system() == 'darwin')
|
||||
c_args += '-DBZ_EXTERN=__attribute__((__visibility__("default")))'
|
||||
endif
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user