diff options
| author | Arthur LAURENT <[email protected]> | 2025-11-26 15:44:09 +0100 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2025-11-26 15:44:09 +0100 |
| commit | 2efb74bb263ef964aae1f50a7f7ab4e7a4f13a60 (patch) | |
| tree | b526a1c3500666e41245d094287c443785425dfb /xmake/rules/c++/modules/scanner.lua | |
| parent | fee49894d216c926cd789ccf7883e220971c20ef (diff) | |
(modules) fix get_stdmodules with cross toolchain
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 |
