From 09300b95ea379fd4b93ecf4806d471157bfae3a5 Mon Sep 17 00:00:00 2001 From: 24bit-xjkp <2283572185@qq.com> Date: Fri, 3 Jan 2025 20:42:50 +0800 Subject: [PATCH] fix(modules): Remove inappropriate warnings 1. The warnings shouldn't be generated when the policy build.c++.modules.std is not enabled. --- .../c++/modules/modules_support/clang/compiler_support.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/xmake/rules/c++/modules/modules_support/clang/compiler_support.lua b/xmake/rules/c++/modules/modules_support/clang/compiler_support.lua index f86a0bd8fec..56bfb5f2524 100644 --- a/xmake/rules/c++/modules/modules_support/clang/compiler_support.lua +++ b/xmake/rules/c++/modules/modules_support/clang/compiler_support.lua @@ -299,8 +299,8 @@ function get_stdmodules(target) -- end end end + wprint("std and std.compat modules not found! maybe try to add --sdk= or install libc++") end - wprint("std and std.compat modules not found! maybe try to add --sdk= or install libc++") end function get_bmi_extension() @@ -488,4 +488,3 @@ function get_print_library_module_manifest_path_flag(target) end return print_library_module_manifest_path_flag or nil end -