diff options
| author | ruki <[email protected]> | 2015-12-04 21:35:21 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2015-12-04 21:35:21 +0800 |
| commit | 95cc4b92a1b940058c2cc8f2bdf0e05ae222a33e (patch) | |
| tree | 2461948d420fcbe2ade286c60358e66d3caa1d34 /xmake/scripts/base/makefile.lua | |
| parent | 55c9ce5e25f0b7a41c5b3d58436f3621f817f599 (diff) | |
get extractor for windows
Diffstat (limited to 'xmake/scripts/base/makefile.lua')
| -rw-r--r-- | xmake/scripts/base/makefile.lua | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/xmake/scripts/base/makefile.lua b/xmake/scripts/base/makefile.lua index 48550809a..934772fe5 100644 --- a/xmake/scripts/base/makefile.lua +++ b/xmake/scripts/base/makefile.lua @@ -98,15 +98,9 @@ function makefile._make_object_for_static(file, target, srcfile, objfile) else mode = "" end -- get extractor name - local toolname = nil - local extractor, errors = tools.get("ex") - if not extractor then - utils.error(errors) - return false - end - toolname = extractor.name + local toolname = platform.tool("ex") if not toolname then - utils.error("cannot get the extractor name!") + utils.error("cannot get extractor!") return false end |
