diff options
| author | Arthur LAURENT <[email protected]> | 2025-05-22 08:51:48 +0200 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2025-05-22 08:51:48 +0200 |
| commit | 481ada9f541be6754801d36bd03c84e7b8665b58 (patch) | |
| tree | 951bba94cd5c7cb82b5d0239b1415fc26dccfdc4 /xmake/rules/c++/modules/clang/builder.lua | |
| parent | 42ba909a17dd780a8bf1ba51a8fcd05ad9418ebd (diff) | |
(C++ modules support) fix clang-cl
Diffstat (limited to 'xmake/rules/c++/modules/clang/builder.lua')
| -rw-r--r-- | xmake/rules/c++/modules/clang/builder.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/clang/builder.lua b/xmake/rules/c++/modules/clang/builder.lua index 797167283..17189b790 100644 --- a/xmake/rules/c++/modules/clang/builder.lua +++ b/xmake/rules/c++/modules/clang/builder.lua @@ -40,6 +40,9 @@ function _make_modulebuildflags(target, module, opt) flags = {"-x", "c++-module"} if not opt.objectfile then table.insert(flags, "--precompile") + if target:has_tool("cxx", "clang_cl") then + table.join2(flags, "/clang:-o", "/clang:" .. module.bmifile) + end end local std = (module.name == "std" or module.name == "std.compat") if std then @@ -182,7 +185,6 @@ function _get_requiresflags(target, module) end end requiresflags = table.unique(requiresflags) - -- table.sort(requiresflags) support.memcache():set2(cachekey, "requiresflags", requiresflags) support.memcache():set2(cachekey, "oldrequires", requires) end |
