From e7ca027a1ebc0ad0e02160cd0c6b3cd502efadc8 Mon Sep 17 00:00:00 2001 From: Arthur LAURENT Date: Sun, 11 May 2025 18:14:15 +0200 Subject: (C++ modules support) fix warnings for std module --- xmake/rules/c++/modules/gcc/support.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'xmake/rules/c++/modules/gcc/support.lua') diff --git a/xmake/rules/c++/modules/gcc/support.lua b/xmake/rules/c++/modules/gcc/support.lua index e28ff2046..d8ab791eb 100644 --- a/xmake/rules/c++/modules/gcc/support.lua +++ b/xmake/rules/c++/modules/gcc/support.lua @@ -166,8 +166,7 @@ function _get_std_module_manifest_path(target) end end -function get_stdmodules(target, opt) - opt = opt or {} +function get_stdmodules(target) if not target:policy("build.c++.modules.std") then return end @@ -187,9 +186,7 @@ function get_stdmodules(target, opt) return std_module_files end end - if not opt.dont_warn then - 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() -- cgit v1.3.1