summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLouis Bailleau <[email protected]>2022-02-02 15:06:14 +0100
committerGitHub <[email protected]>2022-02-02 15:06:14 +0100
commitf0565665caec770b8323dda563dcc5d3e863a840 (patch)
treedb563ff340dca272e7eb5f11511e3a8b5399ce92
parent2a756e30800a818bfaad63ba4631e12f7901fa9f (diff)
Changed line splitting in file loop
-rw-r--r--xmake/rules/qt/qrc/xmake.lua2
1 files changed, 1 insertions, 1 deletions
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