summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/modules_support
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2024-01-31 15:25:27 +0100
committerArthur LAURENT <[email protected]>2024-01-31 15:25:27 +0100
commit0bb30a600ea7362f0a4638e72c94db903afbb7e3 (patch)
tree967519cd320f079b0c730b1f0fc9d476fc4cd911 /xmake/rules/c++/modules/modules_support
parent9cb5dbac8fc6b7f2b56f20734a7b71e12b39c6f4 (diff)
fix potentially nil runtime_flag for clang toolchain include detection
Diffstat (limited to 'xmake/rules/c++/modules/modules_support')
-rw-r--r--xmake/rules/c++/modules/modules_support/clang/compiler_support.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/modules_support/clang/compiler_support.lua b/xmake/rules/c++/modules/modules_support/clang/compiler_support.lua
index 8264daca8..f689dc87d 100644
--- a/xmake/rules/c++/modules/modules_support/clang/compiler_support.lua
+++ b/xmake/rules/c++/modules/modules_support/clang/compiler_support.lua
@@ -121,7 +121,7 @@ function toolchain_includedirs(target)
runtime_flag = "-stdlib=libstdc++"
end
end
- local _, result = try {function () return os.iorunv(clang, {"-E", runtime_flag, "-Wp,-v", "-xc", os.nuldev()}) end}
+ local _, result = try {function () return os.iorunv(clang, table.join({"-E", "-Wp,-v", "-xc", os.nuldev()}, runtime_flag or {})) end}
if result then
for _, line in ipairs(result:split("\n", {plain = true})) do
line = line:trim()