From 490cc7336f3ef41866b90e65caab84fa6bb9fdfe Mon Sep 17 00:00:00 2001 From: Arthur LAURENT Date: Sun, 4 Dec 2022 22:07:02 +0100 Subject: fix missing includedirs on fallback generation module deps --- xmake/rules/c++/modules/modules_support/gcc.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/rules/c++/modules/modules_support/gcc.lua') diff --git a/xmake/rules/c++/modules/modules_support/gcc.lua b/xmake/rules/c++/modules/modules_support/gcc.lua index 6f1539891..1f9a85f70 100644 --- a/xmake/rules/c++/modules/modules_support/gcc.lua +++ b/xmake/rules/c++/modules/modules_support/gcc.lua @@ -185,7 +185,7 @@ function generate_dependencies(target, sourcebatch, opt) for _, define in ipairs(target:get("defines")) do table.insert(defines, "-D" .. define) end - local includedirs = {} + local includedirs = table.join({}, target:get("includedirs")) for _, dep in ipairs(target:orderdeps()) do local includedir = dep:get("sysincludedirs") or dep:get("includedirs") if includedir then -- cgit v1.3.1