From fca3c75472f07dc5e6f632e89d283c2cda8acaff Mon Sep 17 00:00:00 2001 From: Arthur LAURENT Date: Sat, 10 May 2025 22:19:26 +0200 Subject: (C++ modules support) fix module parsing when file are added --- xmake/rules/c++/modules/scanner.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/rules/c++/modules/scanner.lua b/xmake/rules/c++/modules/scanner.lua index efbaa20c3..dcb4f22b8 100644 --- a/xmake/rules/c++/modules/scanner.lua +++ b/xmake/rules/c++/modules/scanner.lua @@ -421,7 +421,7 @@ function _do_parse(target, sourcebatch) cxx_sourcebatch.dependfiles = {} for _, sourcefile in ipairs(sourcebatch.sourcefiles) do local module = mapper.get(target, sourcefile) - if not module.interface and not module.implementation then + if module and not module.interface and not module.implementation then table.insert(cxx_sourcebatch.sourcefiles, sourcefile) local objectfile = target:objectfile(sourcefile) table.insert(cxx_sourcebatch.dependfiles, target:dependfile(objectfile)) -- cgit v1.3.1