From b9e5a411e38224db1f71a39cad57cc54dc13fee6 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 13 Jul 2017 09:51:24 +0800 Subject: modify all cmd to argv for core.tools --- xmake/modules/core/tools/lib.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'xmake/modules/core/tools/lib.lua') 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 -- cgit v1.3.1