diff options
| author | ruki <[email protected]> | 2016-05-25 10:56:12 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2016-05-25 10:56:12 +0800 |
| commit | c8f23de807e6efcd6b797a6dde6366d67f64906d (patch) | |
| tree | 200b5923d2069d79d323493c2f359cf7e78a9828 /xmake/tools/ar.lua | |
| parent | 7545edd1693c3daa4ce9b8ac5ccba200c6858b61 (diff) | |
impl extract library for windows
Diffstat (limited to 'xmake/tools/ar.lua')
| -rw-r--r-- | xmake/tools/ar.lua | 10 |
1 files changed, 5 insertions, 5 deletions
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 |
