summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2023-02-15 18:14:02 +0100
committerArthur LAURENT <[email protected]>2023-02-15 18:14:02 +0100
commit3dff84c9e8fe939d1ed29123797060db56925e26 (patch)
treecf82b52614d3f5b40581bff5af3af10e28dee02d /xmake/rules/c++/modules
parent3cdbc4183fe807d2bf4bbcb19aef1f85e33c1d6d (diff)
fix compilation of non .cpp private module with clang
Diffstat (limited to 'xmake/rules/c++/modules')
-rw-r--r--xmake/rules/c++/modules/modules_support/clang.lua2
1 files changed, 2 insertions, 0 deletions
diff --git a/xmake/rules/c++/modules/modules_support/clang.lua b/xmake/rules/c++/modules/modules_support/clang.lua
index 54be2c80f..3a7ad13b9 100644
--- a/xmake/rules/c++/modules/modules_support/clang.lua
+++ b/xmake/rules/c++/modules/modules_support/clang.lua
@@ -230,6 +230,8 @@ function _build_modulefile(target, sourcefile, opt)
else
bmiflags = table.join("-x", "c++-module", "--precompile", compflags, common_args, requiresflags)
end
+ else
+ compileflags = {"-x", "c++"}
end
if bmiflags then