From b5ec88d78f68fff74fd0f3d9cb61de9e2f815bf0 Mon Sep 17 00:00:00 2001 From: Arthur LAURENT Date: Mon, 8 Sep 2025 16:37:40 +0200 Subject: fix(C++ modules) fix build.c++.modules.std policy --- xmake/rules/c++/modules/config.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"] -- cgit v1.3.1