Commit 29a935d5 authored by Federico Mena Quintero's avatar Federico Mena Quintero

Merge branch 'meson-macos' into 'master'

meson: Fix build on macos

Closes #18

See merge request !22
parents a51fb732 5cd6c8f2
Pipeline #67447705 passed with stage
in 3 minutes and 13 seconds
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment