From 62bf14a330904ea37496d5da5bfe3a66ec3d02ec Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 1 Dec 2022 22:33:51 +0800 Subject: use cxx for modules --- xmake/rules/c++/modules/modules_support/clang.lua | 2 +- xmake/rules/c++/modules/modules_support/gcc.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'xmake/rules/c++/modules/modules_support') 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} 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} -- cgit v1.3.1