File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -54,6 +54,12 @@ add_dependencies(${LOADABLE_EXTENSION_NAME} rust_lib)
5454target_link_libraries (${EXTENSION_NAME} ${RUST_LIB_PATH} )
5555target_link_libraries (${LOADABLE_EXTENSION_NAME} ${RUST_LIB_PATH} )
5656
57+ # Platform-specific compilation flags
58+ if (WIN32 AND MINGW)
59+ # Enable big object files for MinGW to handle large unity builds
60+ add_compile_options (-Wa,-mbig-obj )
61+ endif ()
62+
5763# Platform-specific linking
5864if (APPLE )
5965 target_link_libraries (${EXTENSION_NAME}
@@ -64,6 +70,9 @@ if(APPLE)
6470 "-framework Security"
6571 "-framework SystemConfiguration"
6672 "-framework CoreFoundation" )
73+ elseif (WIN32 )
74+ target_link_libraries (${EXTENSION_NAME} ws2_32 userenv bcrypt )
75+ target_link_libraries (${LOADABLE_EXTENSION_NAME} ws2_32 userenv bcrypt )
6776elseif (UNIX )
6877 target_link_libraries (${EXTENSION_NAME} pthread dl )
6978 target_link_libraries (${LOADABLE_EXTENSION_NAME} pthread dl )
You can’t perform that action at this time.
0 commit comments