diff options
| author | Arthur LAURENT <[email protected]> | 2024-03-07 11:17:46 +0100 |
|---|---|---|
| committer | Arthur LAURENT <[email protected]> | 2024-03-23 23:56:38 +0100 |
| commit | 9845737dcaa882bd56fa46d0b0cbee39e06693e7 (patch) | |
| tree | bf27a8aecce44a6c607374a1708287fad892b7a4 /xmake/rules/c++/modules | |
| parent | d960686b76d491371421d32363a51201c7377ab4 (diff) | |
use os.iorunv
Diffstat (limited to 'xmake/rules/c++/modules')
| -rw-r--r-- | xmake/rules/c++/modules/modules_support/clang/compiler_support.lua | 3 |
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 |
