Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Build mimalloc as a C++ library #264

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

chore: Build mimalloc as a C++ library #264

wants to merge 2 commits into from

Conversation

chakaz
Copy link
Collaborator

@chakaz chakaz commented May 9, 2024

This will have the benefit of throwing exceptions if allocations fail in the C++ APIs (like new)

Related to #2914

This will have the benefit of throwing exceptions if allocations fail in
the C++ APIs (like `new`)
CMAKE_PASS_FLAGS "-DCMAKE_BUILD_TYPE=Release -DMI_BUILD_SHARED=OFF -DMI_BUILD_TESTS=OFF \
-DMI_INSTALL_TOPLEVEL=ON -DMI_OVERRIDE=OFF -DCMAKE_C_FLAGS=-g \
${HELIO_MIMALLOC_OPTS}"
CMAKE_PASS_FLAGS "-DCMAKE_BUILD_TYPE=Release -DMI_USE_CXX=ON -DMI_BUILD_SHARED=OFF \
Copy link
Collaborator Author

@chakaz chakaz May 9, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I only added -DMI_USE_CXX=ON, the rest is just bad diff display due to line breaks :|

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant