From f0565665caec770b8323dda563dcc5d3e863a840 Mon Sep 17 00:00:00 2001 From: Louis Bailleau Date: Wed, 2 Feb 2022 15:06:14 +0100 Subject: Changed line splitting in file loop --- xmake/rules/qt/qrc/xmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xmake/rules/qt/qrc/xmake.lua b/xmake/rules/qt/qrc/xmake.lua index da7678ad8..28db39f87 100644 --- a/xmake/rules/qt/qrc/xmake.lua +++ b/xmake/rules/qt/qrc/xmake.lua @@ -61,7 +61,7 @@ rule("qt.qrc") local outdata = os.iorunv(rcc, {"-name", path.basename(sourcefile_qrc), sourcefile_qrc, "-list"}) -- add resources files to batch - for file in outdata:gmatch("([^\n]*)\n?") do + for _, file in ipairs(outdata:split("\n")) do batchcmds:add_depfiles(file) end -- cgit v1.3.1