Commit 95eec87
committed
wasm_export.h: Use "default" visibility
Since the top-level CMakelists.txt is appending -fvisibility=hidden to
the compile options, no public symbols are exported by default. This
forbids users from linking against the shared library.
Using gcc/clang attributes [1], it is possible to override the
definition for WASM_RUNTIME_API_EXTERN so that only required symbols are
correctly exported.
[1]: https://gcc.gnu.org/onlinedocs/gcc/Common-Function-Attributes.html#Common-Function-Attributes1 parent 62aca17 commit 95eec87
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
| 27 | + | |
26 | 28 | | |
27 | 29 | | |
28 | 30 | | |
| |||
0 commit comments