Re:Xmake: A cross-platform build utility based on Lua
by wsve on Thursday January 29, 2026 @01:55AM
(#46806712)
At my work we use MSBuild and vcpkg. What would a transition from that to XMake be like?
[ Parent
| on HN ]
Re:Xmake: A cross-platform build utility based on Lua
by janjones on Thursday January 29, 2026 @02:25AM
(#46806899)
Then you are already using XMake (albeit a different one than OP), it's the original codename for MSBuild, still present in the code: https://github.com/dotnet/msbuild/blob/main/src/MSBuild/XMak... :)
Re:Xmake: A cross-platform build utility based on Lua
by debugnik on Thursday January 29, 2026 @03:12AM
(#46807207)
Your phrasing could confuse readers: MSBuild happened to historically have XMake as a codename but is entirely unrelated to the build system known as XMake.
Re:Xmake: A cross-platform build utility based on Lua
by janjones on Thursday January 29, 2026 @03:26AM
(#46807292)
Clarified my comment a bit, thanks
Re:Xmake: A cross-platform build utility based on Lua
by pjmlp on Thursday January 29, 2026 @03:16AM
(#46807226)
As far as I am aware, there no integrations available with Visual Studio, and not sure about C++20 modules and import std support.
Re:Xmake: A cross-platform build utility based on Lua
by delta_p_delta_x on Thursday January 29, 2026 @03:19AM
(#46807239)
> not sure about C++20 modules and import std support
XMake supports both.
Re:Xmake: A cross-platform build utility based on Lua
by danny0z on Thursday January 29, 2026 @04:57AM
(#46807968)
It can generate a Visual Studio project, then use the xmake CLI to integrate and compile the project, and supports debugging and IntelliSense.
https://xmake.io/guide/extensions/builtin-plugins.html#gener...
C++ Modules examples:
https://xmake.io/examples/cpp/cxx-modules.html
https://github.com/xmake-io/xmake/tree/dev/tests/projects/c%...
Re:Xmake: A cross-platform build utility based on Lua
by pjmlp on Thursday January 29, 2026 @07:31AM
(#46809295)
Thanks for the information.
Re:Xmake: A cross-platform build utility based on Lua
by ziotom78 on Thursday January 29, 2026 @09:39AM
(#46810778)
A few weeks ago I decided to test C++ modules, but I had a hard time to figure out how to make them accepted by CMake. After a few days of struggle with `set(CMAKE_EXPERIMENTAL_CXX_IMPORT_STD "d0edc3af-4c50-42ea-a356-e2862fe7a444")` (it was so hard to find the right UUID that worked with my version) and errors on `import std;`, I decided to give XMake a chance.
It took just a couple of minutes to have a working example that fully supported C++ modules and `import std`:
set_languages("c++23")
add_rules("mode.debug", "mode.release")
target("mytest")
set_kind("static")
add_files("src/*.cpp")
add_files("src/*.cppm", {public = true})
set_policy("build.c++.modules", true)