generated from duckdb/extension-template
-
Notifications
You must be signed in to change notification settings - Fork 4
/
patch.patch
23 lines (23 loc) · 1.75 KB
/
patch.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 4fc03f0829..5ef6ff17d7 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -836,12 +836,16 @@ function(build_loadable_extension_directory NAME OUTPUT_DIRECTORY EXTENSION_VERS
if(EMSCRIPTEN)
# Compile the library into the actual wasm file
string(TOUPPER ${NAME} EXTENSION_NAME_UPPERCASE)
- string(REPLACE ";" " " TO_BE_LINKED "${DUCKDB_EXTENSION_${EXTENSION_NAME_UPPERCASE}_LINKED_LIBS}")
+ message(WARNING "${DUCKDB_EXTENSION_${EXTENSION_NAME_UPPERCASE}_LINKED_LIBS}")
+ string(REPLACE "X" " " TO_BE_LINKED "${DUCKDB_EXTENSION_${EXTENSION_NAME_UPPERCASE}_LINKED_LIBS}")
+ message(WARNING "stuff found = ${TO_BE_LINKED}")
add_custom_command(
TARGET ${TARGET_NAME}
POST_BUILD
- COMMAND emcc $<TARGET_FILE:${TARGET_NAME}> -o $<TARGET_FILE:${TARGET_NAME}>.wasm -O3 -sSIDE_MODULE=2 -sEXPORTED_FUNCTIONS="_${NAME}_init,_${NAME}_version" ${WASM_THREAD_FLAGS} ${TO_BE_LINKED}
+ COMMAND
+ emcc $<TARGET_FILE:${TARGET_NAME}> -o $<TARGET_FILE:${TARGET_NAME}>.wasm -O3 -sSIDE_MODULE=2 -sEXPORTED_FUNCTIONS="_${NAME}_init,_${NAME}_version" ${WASM_THREAD_FLAGS} ../../third_party/mbedtls/libduckdb_mbedtls.a ../../httplib/libduckdb_httplib.a ../../third_party/yyjson/libduckdb_yyjson.a ../../deps/local/lib/*.a -v
)
+ #emcc $<TARGET_FILE:${TARGET_NAME}> -o $<TARGET_FILE:${TARGET_NAME}>.wasm -O3 -sSIDE_MODULE=2 -sEXPORTED_FUNCTIONS="_${NAME}_init,_${NAME}_version" ${WASM_THREAD_FLAGS} ../../third_party/mbedtls/libduckdb_mbedtls.a ../../httplib/libduckdb_httplib.a ../../third_party/yyjson/libduckdb_yyjson.a ../../vcpkg_installed/wasm32-emscripten/lib/libcrypto.a ../../vcpkg_installed/wasm32-emscripten/lib/libssl.a -v
endif()
add_custom_command(
TARGET ${TARGET_NAME}