From 9d707e01104fe21569b9354ff1a8191f27d5b43a Mon Sep 17 00:00:00 2001 From: ruki Date: Sat, 16 Oct 2021 00:59:31 +0800 Subject: fix module partition --- xmake/rules/c++/modules/build_modules/module_parser.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'xmake/rules/c++/modules/build_modules/module_parser.lua') diff --git a/xmake/rules/c++/modules/build_modules/module_parser.lua b/xmake/rules/c++/modules/build_modules/module_parser.lua index 17e0f4d24..b97b7e1d0 100644 --- a/xmake/rules/c++/modules/build_modules/module_parser.lua +++ b/xmake/rules/c++/modules/build_modules/module_parser.lua @@ -52,6 +52,10 @@ function _generate_moduledeps(target, sourcefile, opt) end local module_depname = line:match("import%s+(.+)%s*;") if module_depname then + -- partition? import :xxx; + if module_depname:startswith(":") then + module_depname = module_name .. module_depname + end module_deps = module_deps or {} table.insert(module_deps, module_depname) end -- cgit v1.3.1