Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 738d873

Browse files
Compile runtime functions only for wasm32 to avoid error while Xcode building
1 parent bb3a3e0 commit 738d873

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Sources/_CJavaScriptKit/_CJavaScriptKit.c

+4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
#include "_CJavaScriptKit.h"
22
#include <stdlib.h>
33

4+
#if __wasm32__
5+
46
void _call_host_function_impl(const JavaScriptHostFuncRef host_func_ref,
57
const RawJSValue *argv, const int argc,
68
const JavaScriptObjectRef callback_func);
@@ -29,3 +31,5 @@ __attribute__((export_name("swjs_library_version")))
2931
int _library_version() {
3032
return 700;
3133
}
34+
35+
#endif

0 commit comments

Comments
 (0)