summaryrefslogtreecommitdiff
path: root/xmake/scripts/platform
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/scripts/platform')
-rw-r--r--xmake/scripts/platform/platform.lua4
-rw-r--r--xmake/scripts/platform/windows/_maker.lua4
2 files changed, 4 insertions, 4 deletions
diff --git a/xmake/scripts/platform/platform.lua b/xmake/scripts/platform/platform.lua
index 01728106b..3748fa218 100644
--- a/xmake/scripts/platform/platform.lua
+++ b/xmake/scripts/platform/platform.lua
@@ -301,9 +301,9 @@ function platform.build(mkfile, target)
-- make command
local cmd = nil
if mkfile and os.isfile(mkfile) then
- cmd = string.format("make -f %s %s", mkfile, target or "")
+ cmd = string.format("make -j4 -f %s %s", mkfile, target or "")
else
- cmd = string.format("make %s", target or "")
+ cmd = string.format("make -j4 %s", target or "")
end
-- done
diff --git a/xmake/scripts/platform/windows/_maker.lua b/xmake/scripts/platform/windows/_maker.lua
index f7bdddbf3..40df24e17 100644
--- a/xmake/scripts/platform/windows/_maker.lua
+++ b/xmake/scripts/platform/windows/_maker.lua
@@ -79,9 +79,9 @@ function _maker.done(mkfile, target)
-- make command
local cmd = nil
if mkfile and os.isfile(mkfile) then
- cmd = string.format("nmake /f %s %s", mkfile, target or "")
+ cmd = string.format("nmake /f %s %s 2> nul", mkfile, target or "")
else
- cmd = string.format("nmake %s", target or "")
+ cmd = string.format("nmake %s 2> nul", target or "")
end
-- done