Configure options for the prebuilt binaries #1624
-
|
What are the options given to configure when compiling the prebuilt binaries in the MacVim releases? (I want to build the same binary as in the releases but using the gettext compiled with homebrew libiconv to avoid the buggy system libiconv.) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
It's a little convoluted to figure out but it's all defined in the
The details for what the configure flags do are documented in https://github.com/macvim-dev/macvim/wiki/Building#how-to-build-macvim. You need to do more than just using the right configure flags though because the environmental variables in the form of There are also some messy bits where it modifies the configured parameters. It's not pretty but it works… (some of this comes from emulating how Vim is built upstream):
The version of gettext and libsodium used for building MacVim are also not the vanilla Homebrew version, as we need to rebuild those packages locally to be universal x86/arm64, and also use the correct deployment target so MacVim works from 10.9 to macOS 26. I highly doubt you want to do that for a local build. This is done by the Honestly you may not want to build MacVim identically to the released binary because e.g. it still works with Python 2 which you very likely do not care about and you would have no reason to install Python 2 on a local machine otherwise. You also don't need to It's been on my backlog to support reproducible builds (#1506) which would necessarily provide a more clearly documented way how each released build is built exactly and reproducibly, so maybe I should get on that. Just to summarize, given that I assume you aren't trying to re-release MacVim and only building for personal use and don't care about say Python 2, this is what I would do rather than mirroring the released binary exactly (MacVim is not reproducibly built at the moment as I mentioned earlier, so you won't be get a binary-identical build to MacVim anyway):
|
Beta Was this translation helpful? Give feedback.
It's a little convoluted to figure out but it's all defined in the
.github/workflows/macvim-buildtest.yamlfile. If you search for "CONFOPT:" in the CI runs, you will see it print something like this:The details for what the configure flags do are documented in https://github.com/macvim-dev/macvim/w…