diff options
Diffstat (limited to 'xmake/scripts/tools/ar.lua')
| -rw-r--r-- | xmake/scripts/tools/ar.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/scripts/tools/ar.lua b/xmake/scripts/tools/ar.lua index dbe947111..75e63f83d 100644 --- a/xmake/scripts/tools/ar.lua +++ b/xmake/scripts/tools/ar.lua @@ -82,8 +82,8 @@ function ar.extract(self, ...) end -- extract it - local ok = os.execute(string.format("%s -x %s", self.name, libfile)) - if ok ~= 0 then + local ok = self:main(string.format("%s -x %s", self.name, libfile)) + if not ok then utils.error("extract %s to %s failed!", libfile, objdir) return false end |
