summaryrefslogtreecommitdiff
path: root/xmake/scripts/base/makefile.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/scripts/base/makefile.lua')
-rw-r--r--xmake/scripts/base/makefile.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/scripts/base/makefile.lua b/xmake/scripts/base/makefile.lua
index 68ff484e1..1624af101 100644
--- a/xmake/scripts/base/makefile.lua
+++ b/xmake/scripts/base/makefile.lua
@@ -232,8 +232,8 @@ function makefile.build(target)
assert(buildir)
-- done build
- local ok = os.execute(string.format("make -f %s %s", buildir .. "/makefile", target))
- if ok ~= 0 then
+ local ok = platform.build(buildir .. "/makefile", target)
+ if not ok then
-- error
utils.error("build target: %s failed!", target)
return false