diff options
| author | Arthur LAURENT <[email protected]> | 2025-05-09 15:55:51 +0200 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2025-05-09 15:56:34 +0200 |
| commit | b24998d8b1217fc0785b20aeeb4531fb172034a9 (patch) | |
| tree | e8aebf7a96e2316bb6f16f24adeb98d40d64b20b /xmake/rules/c++ | |
| parent | 60b0eb86ed3291158e2bf82a1ff12730806194d4 (diff) | |
(C++ modules support) fix module compilation for clang
Diffstat (limited to 'xmake/rules/c++')
| -rw-r--r-- | xmake/rules/c++/modules/clang/builder.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/clang/builder.lua b/xmake/rules/c++/modules/clang/builder.lua index d3145c6de..9404f4d3d 100644 --- a/xmake/rules/c++/modules/clang/builder.lua +++ b/xmake/rules/c++/modules/clang/builder.lua @@ -45,7 +45,7 @@ function _make_modulebuildflags(target, module, opt) table.join2(flags, {"-Wno-include-angled-in-module-purview", "-Wno-reserved-module-identifier", "-Wno-deprecated-declarations"}) end table.insert(flags, module_outputflag .. module.bmifile) - else + elseif not module.headerunit and not module.implementation and not module.interface then flags = {"-x", "c++"} end return flags |
