Replies: 4 comments 3 replies
-
Sorry for the late reply. I want to migrate to CMake eventually but at the same time I want to keep the build dependencies as small as possible. Currently, we use the good old Makefile, and that's still a lingua franca among Unix programmers. As long as we are working on Unix and macOS, I believe we can live with that. When we start working on Windows support, we need to migrate to CMake, but it feels that that's too early to make a change to this place. |
Beta Was this translation helpful? Give feedback.
-
Understood, for now I'll maintain a fork of Mold with CMake + Conan. Should you want any assistance when you get to this task then please feel free to assign the ticket to me in github and I'm happy to pick up any required work. |
Beta Was this translation helpful? Give feedback.
-
I think CMake itself for the build is fine. I just don't see the need to use Conan as the package manager when every decent Linux distribution comes with a package manager handling build dependencies for you (you tell it what you need and the package manager puts the files where cmake can find them). I'm always vary of additional tools just to do the job that my system already can do properly. As for Windows support: CMake works nicely on Windows (usually using it together with Ninja, but I heard the MSVC backend should do just fine too). |
Beta Was this translation helpful? Give feedback.
-
I actually put together this branch due to difficulties encountered with using the inbuilt package manager under Centos to install the required dependencies. Perhaps I'm missing something here but it appeared that different instructions for installing packages are required for each variant of Linux and the reliability/availability of packages is dependent on the package manager in question? In my personal use-case (building across MacOS, Ubunto & Centos) Conan provided a simple solution for consistent cross-platform |
Beta Was this translation helpful? Give feedback.
-
Hello,
I've been building Mold on Mac & Centos systems so have had to find a solution for the project dependencies across different environments. As such I've created a branch that fetched dependencies from the Conan package manager & builds in CMake (and thus in any of the supported underlying build systems).
However support is currently partial, it compiles and builds but currently lacks CTest support for all of the test scripts and an install step for packaging (please feel free to try here: https://github.com/Twon/mold/tree/cmake_and_conan). Do you have any interest in these changes upstream? If so I'm happy to commit to completing a full conversion if this would be useful (i.e for example I see there is an issue for Windows support, this could be useful as a prerequisite to building under Visual Studio / VSCode).
Let me know if you have any questions and I would be happy to hear your thoughts on this.
Cheers
Beta Was this translation helpful? Give feedback.
All reactions