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/support.lua | |
| parent | fee49894d216c926cd789ccf7883e220971c20ef (diff) | |
(modules) fix get_stdmodules with cross toolchain
Diffstat (limited to 'xmake/rules/c++/modules/support.lua')
| -rw-r--r-- | xmake/rules/c++/modules/support.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/xmake/rules/c++/modules/support.lua b/xmake/rules/c++/modules/support.lua index 700426e2c..43600c44e 100644 --- a/xmake/rules/c++/modules/support.lua +++ b/xmake/rules/c++/modules/support.lua @@ -315,7 +315,13 @@ end -- get stdmodules function get_stdmodules(target) + if not target:policy("build.c++.modules.std") then + return + end local cpplib = get_cpplibrary_name(target) + if not cpplib then + return + end local stdmodules = memcache():get2(cpplib, "c++.modules.stdmodules") local stdmodules_set = memcache():get2(cpplib, "c++.modules.stdmodules_set") if not stdmodules or not stdmodules_set then |
