diff options
Diffstat (limited to 'xmake/modules/core/tools/llvm_ar.lua')
| -rw-r--r-- | xmake/modules/core/tools/llvm_ar.lua | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/xmake/modules/core/tools/llvm_ar.lua b/xmake/modules/core/tools/llvm_ar.lua index de128d3a5..fb20c2320 100644 --- a/xmake/modules/core/tools/llvm_ar.lua +++ b/xmake/modules/core/tools/llvm_ar.lua @@ -73,32 +73,3 @@ function link(self, objectfiles, targetkind, targetfile, flags) os.runv(linkargv(self, objectfiles, targetkind, targetfile, flags)) end --- extract the static library to object directory -function extract(self, libraryfile, objectdir) - - -- make the object directory first - os.mkdir(objectdir) - - -- get the absolute path of this library - libraryfile = path.absolute(libraryfile) - - -- enter the object directory - local oldir = os.cd(objectdir) - - -- extract it - os.runv(self:program(), {"x", libraryfile}) - - -- check repeat object name - local repeats = {} - local objectfiles = os.iorunv(self:program(), {"t", 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[objectfile] = true - end - - -- leave the object directory - os.cd(oldir) -end - |
