From 2efb74bb263ef964aae1f50a7f7ab4e7a4f13a60 Mon Sep 17 00:00:00 2001 From: Arthur LAURENT Date: Wed, 26 Nov 2025 15:44:09 +0100 Subject: (modules) fix get_stdmodules with cross toolchain --- xmake/rules/c++/modules/scanner.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xmake/rules/c++/modules/scanner.lua') diff --git a/xmake/rules/c++/modules/scanner.lua b/xmake/rules/c++/modules/scanner.lua index 6d8c9d9bf..8d5fd057d 100644 --- a/xmake/rules/c++/modules/scanner.lua +++ b/xmake/rules/c++/modules/scanner.lua @@ -274,7 +274,7 @@ function _get_targetdeps_modules(target) if sourcebatch.sourcefiles then for _, sourcefile in ipairs(sourcebatch.sourcefiles) do modules = modules or {} - if support.is_public(dep, sourcefile) or stdmodules_set:has(sourcefile) then + if support.is_public(dep, sourcefile) or (stdmodules_set and stdmodules_set:has(sourcefile)) then local _fileconfig = dep:fileconfig(sourcefile) local fileconfig = {} if _fileconfig then -- cgit v1.3.1