summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/rules/c++/modules')
-rw-r--r--xmake/rules/c++/modules/modules_support/clang/compiler_support.lua3
1 files changed, 2 insertions, 1 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 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