From 95cc4b92a1b940058c2cc8f2bdf0e05ae222a33e Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 4 Dec 2015 21:35:21 +0800 Subject: get extractor for windows --- xmake/scripts/base/makefile.lua | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'xmake/scripts/base/makefile.lua') 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 -- cgit v1.3.1