summaryrefslogtreecommitdiff
path: root/xmake/modules/core/tools/lib.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2017-07-13 09:51:24 +0800
committerruki <[email protected]>2017-07-13 09:51:41 +0800
commitb9e5a411e38224db1f71a39cad57cc54dc13fee6 (patch)
tree916f94e87922de4b7ec2168245e3c1fd8763a8e6 /xmake/modules/core/tools/lib.lua
parentb72d2cd32d1919170eb621dd6c0074c975eb67e1 (diff)
modify all cmd to argv for core.tools
Diffstat (limited to 'xmake/modules/core/tools/lib.lua')
-rw-r--r--xmake/modules/core/tools/lib.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/xmake/modules/core/tools/lib.lua b/xmake/modules/core/tools/lib.lua
index b7d18b024..0b1541b04 100644
--- a/xmake/modules/core/tools/lib.lua
+++ b/xmake/modules/core/tools/lib.lua
@@ -34,7 +34,7 @@ function extract(self, libraryfile, objectdir)
os.mkdir(objectdir)
-- list object files
- local objectfiles = os.iorun("%s -nologo -list %s", self:program(), libraryfile)
+ local objectfiles = os.iorunv(self:program(), {"-nologo", "-list", libraryfile})
-- extrace all object files
for _, objectfile in ipairs(objectfiles:split('\n')) do
@@ -56,7 +56,7 @@ function extract(self, libraryfile, objectdir)
end
-- extract it
- os.run("%s -nologo -extract:%s -out:%s %s", self:program(), objectfile, outputfile, libraryfile)
+ os.runv(self:program(), {"-nologo", "-extract:" .. objectfile, "-out:" .. outputfile, libraryfile})
end
end
end