summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2024-01-23 21:48:07 +0100
committerArthur LAURENT <[email protected]>2024-01-26 18:20:59 +0100
commit713e8a5c201c54e54a3f6165f558c964c31f7cdc (patch)
tree043ea9e5daa8c660b913c2a1bf98e4a3cc6a7d2b
parenta1656243410a0d0b475835f347e8563065458844 (diff)
Revert "use execv instead of iorunv"
This reverts commit 1780795781414c0fceb9d2f6c63c62188df0be02.
-rw-r--r--xmake/rules/c++/modules/modules_support/clang/builder.lua4
-rw-r--r--xmake/rules/c++/modules/modules_support/msvc/builder.lua2
2 files changed, 3 insertions, 3 deletions
diff --git a/xmake/rules/c++/modules/modules_support/clang/builder.lua b/xmake/rules/c++/modules/modules_support/clang/builder.lua
index 054198683..0e51bd93e 100644
--- a/xmake/rules/c++/modules/modules_support/clang/builder.lua
+++ b/xmake/rules/c++/modules/modules_support/clang/builder.lua
@@ -89,9 +89,9 @@ function _compile(target, flags, cppfile)
if not dryrun then
-- do compile
if msvc then
- assert(os.execv(compinst:program(), flags, {envs = msvc:runenvs()}))
+ assert(os.iorunv(compinst:program(), flags, {envs = msvc:runenvs()}))
else
- assert(os.execv(compinst:program(), flags))
+ assert(os.iorunv(compinst:program(), flags))
end
end
end
diff --git a/xmake/rules/c++/modules/modules_support/msvc/builder.lua b/xmake/rules/c++/modules/modules_support/msvc/builder.lua
index d9c581099..0f4f9b735 100644
--- a/xmake/rules/c++/modules/modules_support/msvc/builder.lua
+++ b/xmake/rules/c++/modules/modules_support/msvc/builder.lua
@@ -86,7 +86,7 @@ function _compile(target, flags, sourcefile)
if not dryrun then
-- do compile
- assert(os.execv(compinst:program(), flags, {envs = msvc:runenvs()}))
+ assert(os.iorunv(compinst:program(), flags, {envs = msvc:runenvs()}))
end
end