meson: fix incorrect use of global arguments to set symbol visibility
authorEli Schwartz <eschwartz93@gmail.com>
Wed, 5 Jan 2022 04:42:03 +0000 (23:42 -0500)
committerEli Schwartz <eschwartz93@gmail.com>
Wed, 5 Jan 2022 04:42:03 +0000 (23:42 -0500)
commit129867d743e78dc410d24e503ddfeb2b432db5aa
tree9d1b27237a4915aaa28116dd4586d618a43e2e4c
parentd20e26be7d73876812eb5625b12a2502969ba24e
meson: fix incorrect use of global arguments to set symbol visibility

add_global_arguments applies to all subprojects, or more usually, fails.
The meson docs suggest that add_project_arguments is probably preferable
for this reason.

However, in this case it should only be applied to a single library as a
workaround for supporting older versions of meson. Move it to a
per-target c_args instead, for the same effect.
src/lib/meson.build