Skip to content

如何使用mimalloc静态库 #110

@Lawliet828

Description

@Lawliet828

What happened + What you expected to happen

co_context使用的mimalloc动态库

if (CO_CONTEXT_USE_MIMALLOC)
    target_link_libraries(co_context PUBLIC mimalloc)
endif()

在一些生产环境的机器上安装mimalloc动态库比较困难,可以增加使用静态库的编译方式吗

我尝试直接将cmake改为mimalloc-static没有编译成功

if (CO_CONTEXT_USE_MIMALLOC)
    target_link_libraries(co_context PUBLIC mimalloc-static)
endif()

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions