-
Notifications
You must be signed in to change notification settings - Fork 888
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
mimalloc.o not available in vcpkg #907
Comments
To use mimalloc.o with vcpkg, follow these steps:
git clone https://github.com/microsoft/mimalloc.git
In your CMakeLists.txt, add:
This ensures you can use mimalloc.o with static overriding and link it manually in your project. This summary highlights the main actions required and keeps it concise for easy reading. |
This does not make sense. Why build mimalloc manually in step 2 when you already installed it in step 1? This comment, like any of yours recently, look like it's copied mostly straight out of the answer from some AI. I'm not really important here, but as someone who reads the discussions & issues around mimalloc out of interest: |
But you are Frank :-) Thank you for all your help and insightful comments over time! With regards to vcpkg -- I am not maintaining this as those scripts are part of the (ps. I am hesitant to start maintaining the vcpkg part of mimalloc but maybe someone can help out the current maintainer? I recently updated the CMakeFiles.txt for windows as well to generate |
Thanks for the kind words!
While I'm not using mimalloc through vcpkg myself, I took a quick look at it's "port":
And judging from the git log for mimallloc in vcpkg (https://github.com/microsoft/vcpkg/commits/master/ports/mimalloc) there's no singular maintainer... That said, it looks like the "organic" approach - someone has an issue with the port, writes an issue and/or provides a patch - seemed to work out okay in the past; maybe hope it continues to do so? |
According to the docs for static override we should do
I am using mimalloc from vcpkg. But the
mimalloc.o
file is not built by the vcpkg configuration of mimalloc as the targetmimalloc-obj
is also not built. In fact, MIMALLOC_OBJECT_DIR is not available which is supposed to be used for obtaining mimalloc.o.How can we use
mimalloc.o
in vcpkg? Ideally I would want to be able to accessmimalloc.o
via CMake and then link it with the target. #532 seems similar but vcpkg build process formimalloc
doesn't makemimalloc-obj
target available.The text was updated successfully, but these errors were encountered: