From 2309c5ec03eb09842814bcf03fffa8fa93999acf Mon Sep 17 00:00:00 2001 From: ruki Date: Tue, 6 Jun 2017 18:41:05 +0800 Subject: add find_library and remove some old codes --- xmake/plugins/lua/scripts/lipo.lua | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'xmake/plugins/lua/scripts/lipo.lua') diff --git a/xmake/plugins/lua/scripts/lipo.lua b/xmake/plugins/lua/scripts/lipo.lua index 9cd9c4c96..8b87eb9e0 100644 --- a/xmake/plugins/lua/scripts/lipo.lua +++ b/xmake/plugins/lua/scripts/lipo.lua @@ -23,7 +23,7 @@ -- -- imports -import("core.tool.tool") +import("detect.tool.find_lipo") -- main -- @@ -39,10 +39,8 @@ function main(...) end args = args[1] - -- check the lipo - local lipo = tool.check("xcrun lipo", nil, function (shellname) - os.run("xcrun -find lipo") - end) + -- find the lipo + local lipo = find_lipo() assert(lipo, "lipo not found!") -- run it -- cgit v1.3.1