Commit 18d6a75
committed
[wasm] Port BlocksRuntime for no dlfcn.h platforms
BlocksRuntime uses dlsym to find objc_destructInstance, which is not
available on all platforms. This change adds a check for dlfcn.h and
only uses dlsym if it is available and otherwise crashes the program.
The crash will not usually happen, as `_Block_use_RR` is only called
from objc-auto, which is not available for such platforms.1 parent dbca8c7 commit 18d6a75
1 file changed
+5
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | | - | |
| 18 | + | |
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| |||
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| 271 | + | |
271 | 272 | | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
272 | 276 | | |
273 | 277 | | |
274 | 278 | | |
| |||
0 commit comments