summaryrefslogtreecommitdiff
path: root/xmake/rules/c++/modules
diff options
context:
space:
mode:
authorArthur LAURENT <[email protected]>2024-01-23 21:36:56 +0100
committerArthur LAURENT <[email protected]>2024-01-26 18:20:59 +0100
commita1656243410a0d0b475835f347e8563065458844 (patch)
tree3ba3ffffd7efa83ebaf30505a080d7c8b6c2a2a9 /xmake/rules/c++/modules
parent35f41b6dcf27d0fdcd2f112e086115720c2246cd (diff)
use execv instead of iorunv
to keep syntax coloration of clang / cl output when compiling modules
Diffstat (limited to 'xmake/rules/c++/modules')
-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 0e51bd93e..054198683 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.iorunv(compinst:program(), flags, {envs = msvc:runenvs()}))
+ assert(os.execv(compinst:program(), flags, {envs = msvc:runenvs()}))
else
- assert(os.iorunv(compinst:program(), flags))
+ assert(os.execv(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 0f4f9b735..d9c581099 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.iorunv(compinst:program(), flags, {envs = msvc:runenvs()}))
+ assert(os.execv(compinst:program(), flags, {envs = msvc:runenvs()}))
end
end