We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ae6e490 commit 61cb972Copy full SHA for 61cb972
core/iwasm/libraries/wasi-nn/src/wasi_nn.c
@@ -21,9 +21,14 @@
21
#include "wasm_export.h"
22
23
#define HASHMAP_INITIAL_SIZE 20
24
-#define TFLITE_BACKEND_LIB "libwasi_nn_tflite.so"
25
-#define OPENVINO_BACKEND_LIB "libwasi_nn_openvino.so"
26
-#define LLAMACPP_BACKEND_LIB "libwasi_nn_llamacpp.so"
+#if defined(__APPLE__)
+#define LIB_EXTENTION ".dylib"
+#else
27
+#define LIB_EXTENTION ".so"
28
+#endif
29
+#define TFLITE_BACKEND_LIB "libwasi_nn_tflite" LIB_EXTENTION
30
+#define OPENVINO_BACKEND_LIB "libwasi_nn_openvino" LIB_EXTENTION
31
+#define LLAMACPP_BACKEND_LIB "libwasi_nn_llamacpp" LIB_EXTENTION
32
33
/* Global variables */
34
struct backends_api_functions {
0 commit comments