Skip to content

Introduce feature flag to switch between mimalloc major versions #144

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

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

Conversation

gschulze
Copy link

This PR adds a feature flag that allows switching between the latest versions of the v2 and v3 branches of mimalloc. Internally, this is solved by having two submodules for v2 and v3 that point to the same repository URL (https://github.com/microsoft/mimalloc) but different commits. The correct source is chosen in build.rs based on whether the 'v3' feature flag is set or not.

@gschulze gschulze mentioned this pull request Jul 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant