summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules/config.lua
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2025-09-08 16:37:40 +0200
committerArthur LAURENT <[email protected]>2025-09-08 16:37:40 +0200
commitb5ec88d78f68fff74fd0f3d9cb61de9e2f815bf0 (patch)
tree8469af6b9230c93b2dcf2dac2b718ce431d8458e /xmake/rules/c++/modules/config.lua
parent37b0f7c8a80def21ad5def2bfbf2ea8376774b80 (diff)
fix(C++ modules) fix build.c++.modules.std policy
Diffstat (limited to 'xmake/rules/c++/modules/config.lua')
-rw-r--r--xmake/rules/c++/modules/config.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/rules/c++/modules/config.lua b/xmake/rules/c++/modules/config.lua
index a0f7dcc33..30f2f2680 100644
--- a/xmake/rules/c++/modules/config.lua
+++ b/xmake/rules/c++/modules/config.lua
@@ -90,7 +90,7 @@ function main(target)
end
function insert_stdmodules(target)
- if target:data("cxx.has_modules") then
+ if target:data("cxx.has_modules") and target:policy("build.c++.modules.std") then
local sourcebatches = target:sourcebatches()
if sourcebatches and sourcebatches["c++.build.modules.scanner"] then
local sourcebatch = sourcebatches["c++.build.modules.scanner"]