diff options
| author | ruki <[email protected]> | 2015-12-05 20:38:26 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-12-05 20:38:40 +0800 |
| commit | f77eb028a770969a3e87af41e41fe1e66b3b7842 (patch) | |
| tree | bb9b7d8a63c26b4446fded0028bfcd10fdd67d71 /xmake/scripts/tools/ar.lua | |
| parent | b753c9e182813b395dd4910476ff4fb3c5e26fd9 (diff) | |
load config for the lua action
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 |
