summaryrefslogtreecommitdiff
path: root/docs/markdown/snippets/visibility.md
blob: f55a48f4b6dd8b836a5cbb1abb56e8d91ff88826 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
## Keyword argument for symbol visibility

Build targets got a new keyword, `symbol_visibility` that controls how
symbols are exported from shared libraries. This is most commonly used
to hide implementation symbols like this:

```meson
shared_library('mylib', ...
  symbol_visibility: 'hidden')
```

In this case only symbols explicitly marked as visible in the source
files get exported.