File tree Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Expand file tree Collapse file tree 3 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -332,6 +332,7 @@ jobs:
332
332
-DUMF_BUILD_OS_MEMORY_PROVIDER=OFF
333
333
-DUMF_BUILD_LIBUMF_POOL_SCALABLE=OFF
334
334
-DUMF_BUILD_LIBUMF_POOL_JEMALLOC=OFF
335
+ -DUMF_BUILD_SHARED_LIBRARY=ON
335
336
336
337
- name : Build UMF
337
338
run : cmake --build ${{env.BUILD_DIR}} -j $(sysctl -n hw.logicalcpu)
@@ -342,3 +343,4 @@ jobs:
342
343
--build-dir ${{env.BUILD_DIR}}
343
344
--install-dir ${{env.INSTL_DIR}}
344
345
--build-type ${{env.BUILD_TYPE}}
346
+ --shared-library
Original file line number Diff line number Diff line change @@ -114,7 +114,7 @@ function(add_umf_library)
114
114
115
115
if (WINDOWS )
116
116
target_link_options (${ARG_NAME} PRIVATE /DEF:${ARG_WINDOWS_DEF_FILE} )
117
- else ( )
117
+ elseif ( LINUX )
118
118
target_link_options (${ARG_NAME} PRIVATE "-Wl,--version-script=${ARG_LINUX_MAP_FILE} " )
119
119
endif ()
120
120
endif ()
Original file line number Diff line number Diff line change @@ -60,10 +60,14 @@ def _create_match_list(self) -> List[str]:
60
60
if platform .system () == "Windows" :
61
61
lib_ext_static = "lib"
62
62
lib_ext_shared = "lib"
63
- else :
63
+ elif platform . system () == "Linux" :
64
64
lib_ext_static = "a"
65
65
lib_ext_shared = "so"
66
66
lib_prefix = "lib"
67
+ else : # MacOS
68
+ lib_ext_static = "a"
69
+ lib_ext_shared = "dylib"
70
+ lib_prefix = "lib"
67
71
68
72
bin = []
69
73
if platform .system () == "Windows" and self .shared_library :
You can’t perform that action at this time.
0 commit comments