diff options
| author | ruki <[email protected]> | 2019-08-20 23:52:53 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2019-08-20 17:17:24 +0800 |
| commit | b4aaf6ec3aa7d2d9d6f21f267a46869d25275d16 (patch) | |
| tree | 4ffca303046f223ec92a2d7938d13d4ac3622ada /xmake/modules/core/tools/lib.lua | |
| parent | da11852ee8510e46ba0436ab125d0d89d6c1f728 (diff) | |
rewrite vs unicode output
Diffstat (limited to 'xmake/modules/core/tools/lib.lua')
| -rw-r--r-- | xmake/modules/core/tools/lib.lua | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/lib.lua b/xmake/modules/core/tools/lib.lua index 0ae9be7fd..1bd54a839 100644 --- a/xmake/modules/core/tools/lib.lua +++ b/xmake/modules/core/tools/lib.lua @@ -18,6 +18,9 @@ -- @file lib.lua -- +-- imports +import("private.tools.vstool") + -- extract the static library to object directory function extract(self, libraryfile, objectdir) @@ -25,7 +28,7 @@ function extract(self, libraryfile, objectdir) os.mkdir(objectdir) -- list object files - local objectfiles = os.iorunv(self:program(), {"-nologo", "-list", libraryfile}, {vs_unicode_output = true}) + local objectfiles = vstool.iorunv(self:program(), {"-nologo", "-list", libraryfile}) -- extrace all object files for _, objectfile in ipairs(objectfiles:split('\n')) do @@ -47,7 +50,7 @@ function extract(self, libraryfile, objectdir) end -- extract it - os.runv(self:program(), {"-nologo", "-extract:" .. objectfile, "-out:" .. outputfile, libraryfile}, {vs_unicode_output = true}) + vstool.runv(self:program(), {"-nologo", "-extract:" .. objectfile, "-out:" .. outputfile, libraryfile}) end end end |
