diff options
| author | ruki <[email protected]> | 2022-12-01 22:33:51 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2022-12-01 22:33:51 +0800 |
| commit | 62bf14a330904ea37496d5da5bfe3a66ec3d02ec (patch) | |
| tree | 7345b84907e557e7cda1a615461900569e04388c /xmake/rules/c++/modules/modules_support/clang.lua | |
| parent | b7cb532c705607ab040c1f94ef6a95047fad8dbd (diff) | |
use cxx for modules
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/clang.lua')
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/clang.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/modules_support/clang.lua b/xmake/rules/c++/modules/modules_support/clang.lua index 678a0ccd3..10042abe2 100644 --- a/xmake/rules/c++/modules/modules_support/clang.lua +++ b/xmake/rules/c++/modules/modules_support/clang.lua @@ -179,7 +179,7 @@ function toolchain_includedirs(target) local includedirs = _g.includedirs if includedirs == nil then includedirs = {} - local clang, toolname = target:tool("cc") + local clang, toolname = target:tool("cxx") assert(toolname == "clang") _get_toolchain_includedirs_for_stlheaders(target, includedirs, clang) local _, result = try {function () return os.iorunv(clang, {"-E", "-Wp,-v", "-xc", os.nuldev()}) end} |
