summaryrefslogtreecommitdiff
path: root/xmake/core/tool/tool.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2016-04-15 11:29:31 +0800
committerruki <[email protected]>2016-04-15 11:29:31 +0800
commit8783f5a604a928f414059b77d2bcc4eb6ef10803 (patch)
tree48b0b1015268cbae60186a60010652fddfad46a7 /xmake/core/tool/tool.lua
parentf6942112a7377b99c0be9eac45b269519ab4ac56 (diff)
add checker for macosx
Diffstat (limited to 'xmake/core/tool/tool.lua')
-rw-r--r--xmake/core/tool/tool.lua27
1 files changed, 1 insertions, 26 deletions
diff --git a/xmake/core/tool/tool.lua b/xmake/core/tool/tool.lua
index 64965db4a..22831ba00 100644
--- a/xmake/core/tool/tool.lua
+++ b/xmake/core/tool/tool.lua
@@ -122,31 +122,6 @@ function tool._find(root, name)
return file_ok
end
--- the tool filter
-function tool._filter()
-
- -- new filter
- return filter.new(function (variable)
-
- -- check
- assert(variable)
-
- -- init maps
- local maps =
- {
- host = xmake._HOST
- , nuldev = xmake._NULDEV
- , tmpdir = os.tmpdir()
- , curdir = os.curdir()
- }
-
- -- map it
- return maps[variable]
-
- end)
-
-end
-
-- load the given tool from the given kind
--
-- the kinds:
@@ -190,7 +165,7 @@ function tool.load(kind)
if script then
-- make sandbox instance with the given script
- local instance, errors = sandbox.new(script, tool._filter(), path.directory(toolpath))
+ local instance, errors = sandbox.new(script, nil, path.directory(toolpath))
if not instance then
return nil, errors
end