summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2023-01-23 16:57:03 +0100
committerArthur LAURENT <[email protected]>2023-01-23 16:57:03 +0100
commit81d8ae23bbd8a980fff00f4b305adabc422a8c89 (patch)
tree8434a8d39e72ff6c1eb2f9b6b0dcc192f83383cb
parent270b45e610c37472c3cb7a9c23cd3cf52e3f1232 (diff)
support clang++ in toolchain_includedirs
-rw-r--r--xmake/rules/c++/modules/modules_support/clang.lua2
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 aeb8ebd53..3fdbb1b09 100644
--- a/xmake/rules/c++/modules/modules_support/clang.lua
+++ b/xmake/rules/c++/modules/modules_support/clang.lua
@@ -226,7 +226,7 @@ function toolchain_includedirs(target)
if includedirs == nil then
includedirs = {}
local clang, toolname = target:tool("cxx")
- assert(toolname == "clang")
+ assert(toolname:startswith("clang"))
_get_toolchain_includedirs_for_stlheaders(target, includedirs, clang)
local _, result = try {function () return os.iorunv(clang, {"-E", "-stdlib=libc++", "-Wp,-v", "-xc", os.nuldev()}) end}
if result then