diff options
-rw-r--r-- | share/qbs/module-providers/Qt/templates/qml.js | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/share/qbs/module-providers/Qt/templates/qml.js b/share/qbs/module-providers/Qt/templates/qml.js index c7829d81b..3a86ce695 100644 --- a/share/qbs/module-providers/Qt/templates/qml.js +++ b/share/qbs/module-providers/Qt/templates/qml.js @@ -44,7 +44,10 @@ function getLibsForPlugin(pluginData, buildVariant, targetOS, toolchain, qtLibDi var pluginLib; var otherLibs = ""; var line; - while (line = prlFile.readLine()) { + while (!prlFile.atEof()) { + line = prlFile.readLine().trim(); + if (!line) + continue; if (line.startsWith("QMAKE_PRL_TARGET")) pluginLib = FileInfo.joinPaths(pluginData.path, getPrlRhs(line)); if (line.startsWith("QMAKE_PRL_LIBS")) { |