From c8f23de807e6efcd6b797a6dde6366d67f64906d Mon Sep 17 00:00:00 2001 From: ruki Date: Wed, 25 May 2016 10:56:12 +0800 Subject: impl extract library for windows --- xmake/tools/ar.lua | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'xmake/tools/ar.lua') diff --git a/xmake/tools/ar.lua b/xmake/tools/ar.lua index 27ecd0a0f..64161a901 100644 --- a/xmake/tools/ar.lua +++ b/xmake/tools/ar.lua @@ -73,12 +73,12 @@ function extract(libraryfile, objectdir) -- check repeat object name local repeats = {} - local results = os.iorun("%s -t %s", _g.shellname, libraryfile) - for _, line in ipairs(results:split('\n')) do - if repeats[line] then - raise("object name(%s) conflicts in library: %s", line, libraryfile) + local objectfiles = os.iorun("%s -t %s", _g.shellname, libraryfile) + for _, objectfile in ipairs(objectfiles:split('\n')) do + if repeats[objectfile] then + raise("object name(%s) conflicts in library: %s", objectfile, libraryfile) end - repeats[line] = true + repeats[objectfile] = true end -- leave the object directory -- cgit v1.3.1