Commit e1fb209
dispatch: introduce
When building with CMake, `dispatch_EXPORT` is automatically defined
when building a shared library. We should additionally rely on
`dispatch_STATIC` to indicate that we are building a static library.
When building statically, we should ensure that the ABI of dispatch does
not participate in dynamic linking as otherwise any consuming library
would vend the dispatch ABI. Particularly for Linux, this would be
problematic as the symbol resolution is ill-defined and can end up with
multiple incompatible definitions.
Co-authored-by: Evan Wilde <[email protected]>dispatch_STATIC and honour dispatch_EXPORT
1 parent b1b8336 commit e1fb209
1 file changed
+17
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
186 | 186 | | |
187 | 187 | | |
188 | 188 | | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | | - | |
196 | | - | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
197 | 195 | | |
198 | | - | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
199 | 207 | | |
200 | 208 | | |
201 | 209 | | |
| |||
0 commit comments