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/gcc.lua | |
| parent | b7cb532c705607ab040c1f94ef6a95047fad8dbd (diff) | |
use cxx for modules
Diffstat (limited to 'xmake/rules/c++/modules/modules_support/gcc.lua')
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/gcc.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/modules_support/gcc.lua b/xmake/rules/c++/modules/modules_support/gcc.lua index 28ece4dd8..dbb8df3bf 100644 --- a/xmake/rules/c++/modules/modules_support/gcc.lua +++ b/xmake/rules/c++/modules/modules_support/gcc.lua @@ -132,7 +132,7 @@ function toolchain_includedirs(target) local includedirs = _g.includedirs if includedirs == nil then includedirs = {} - local gcc, toolname = target:tool("cc") + local gcc, toolname = target:tool("cxx") assert(toolname == "gcc") _get_toolchain_includedirs_for_stlheaders(includedirs, gcc) local _, result = try {function () return os.iorunv(gcc, {"-E", "-Wp,-v", "-xc", os.nuldev()}) end} |
