diff options
| author | Arthur LAURENT <[email protected]> | 2023-02-15 18:14:02 +0100 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2023-02-15 18:14:02 +0100 |
| commit | 3dff84c9e8fe939d1ed29123797060db56925e26 (patch) | |
| tree | cf82b52614d3f5b40581bff5af3af10e28dee02d /xmake/rules/c++/modules | |
| parent | 3cdbc4183fe807d2bf4bbcb19aef1f85e33c1d6d (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.lua | 2 |
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 |
