File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change 194
194
endif
195
195
196
196
197
+
197
198
# This hacks away a:
198
199
# ```C
199
200
# #define COMPILE_SQLITE_EXTENSIONS_AS_LOADABLE_MODULE=1
@@ -203,13 +204,18 @@ endif
203
204
# ```C
204
205
# #include "sqlite3ext.h"
205
206
# ```
206
- # This results in undefined symbols during runtime when compiling the WASM with MAIN_MODULE=2.
207
+ # This results in undefined symbols during runtime when `-DSQLITE_OMIT_LOAD_EXTENSION` is not used.
208
+ ifeq ($(shell uname) , Darwin)
209
+ SED_INPLACE := sed -i ''
210
+ else
211
+ SED_INPLACE := sed -i
212
+ endif
207
213
deps/$(EXTENSION_FUNCTIONS ) : cache/$(EXTENSION_FUNCTIONS )
208
214
mkdir -p deps
209
215
bash -c " $( OPENSSL_CHECK_CMD) "
210
216
bash -c " $( HASH_CHECK_CMD) "
211
217
rm -rf deps/sha3 $@
212
- sed -i ' ' " /#define COMPILE_SQLITE_EXTENSIONS_AS_LOADABLE_MODULE/d" cache/$(EXTENSION_FUNCTIONS )
218
+ $( SED_INPLACE ) " /#define COMPILE_SQLITE_EXTENSIONS_AS_LOADABLE_MODULE/d" cache/$(EXTENSION_FUNCTIONS )
213
219
cp cache/$(EXTENSION_FUNCTIONS ) $@
214
220
215
221
# # tmp
You can’t perform that action at this time.
0 commit comments