From 6ba8d0eb8d09d5170242837ef091c04ab4da6047 Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 3 Jun 2015 13:47:32 +0800 Subject: add string split --- xmake/scripts/base/makefile.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmake/scripts/base/makefile.lua') 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 -- cgit v1.3.1