diff options
Diffstat (limited to 'xmake/rules/c++/modules/scanner.lua')
| -rw-r--r-- | xmake/rules/c++/modules/scanner.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
