From 9845737dcaa882bd56fa46d0b0cbee39e06693e7 Mon Sep 17 00:00:00 2001 From: Arthur LAURENT Date: Thu, 7 Mar 2024 11:17:46 +0100 Subject: use os.iorunv --- xmake/rules/c++/modules/modules_support/clang/compiler_support.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 af2f3ae74..427a8a6a2 100644 --- a/xmake/rules/c++/modules/modules_support/clang/compiler_support.lua +++ b/xmake/rules/c++/modules/modules_support/clang/compiler_support.lua @@ -82,7 +82,8 @@ end function _get_std_module_manifest_path(target) local print_module_manifest_flag = get_print_library_module_manifest_path_flag(target) if print_module_manifest_flag then - local outdata = try { function() return os.iorun(self:program() .. " " .. print_module_manifest_flag) end } + local compinst = target:compiler("cxx") + local outdata, _ = try { function() return os.iorunv(compinst:program(), {print_module_manifest_flag}) end } if outdata then return outdata:trim() end -- cgit v1.3.1