Skip to content

Commit

Permalink
use cxx for modules
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Dec 1, 2022
1 parent b7cb532 commit 62bf14a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion xmake/rules/c++/modules/modules_support/clang.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down
2 changes: 1 addition & 1 deletion xmake/rules/c++/modules/modules_support/gcc.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 62bf14a

Please sign in to comment.