Details
-
Bug
-
Resolution: Done
-
P2: Important
-
5.15.0
-
MacOS 5.15.5, Windows 10
-
-
41890402db086f4c61e052cef7659eb6b003dc77 (qt/qtdeclarative/dev) b92a4558aa56c25a9a766ec0cc97699892a672e2 (qt/qtdeclarative/5.15)
Description
Hi,
It seems that qmake from Qt 5.15.0 doesn't respect QTQUICK_COMPILER_SKIPPED_RESOURCES
I took 'recipe browser' example and added the following function to custom.js:
async function test() {} // 'async' keyword requires ES2017
and qtquickcompiler recipebrowser.pro:
CONFIG += qtquickcompiler
(see attached archive)
This example compiles without errors with Qt5.14.2, but fails on Qt5.15.0.
qmlcachegen is called regardless of 'QTQUICK_COMPILER_SKIPPED_RESOURCES = resources/resources.qrc':
/Users/andrey/Qt/5.15.0/clang_64/bin/qmlcachegen --resource=/Users/andrey/Qt/Examples/Qt-5.15.0/webengine/recipebrowser/resources/resources.qrc -o resources_pages_assets_custom_js.cpp ../recipebrowser/resources/pages/assets/custom.js /Users/andrey/Qt/5.15.0/clang_64/bin/rcc -name resources_resources_qmlcache resources_resources_qmlcache.qrc -o qrc_resources_resources_qmlcache.cpp Error compiling js file: ../recipebrowser/resources/pages/assets/custom.js:69:7: error: Expected token `,'
Disabling qtquickcompiler helps.
Expected: qmlcachegen should exclude resources from QTQUICK_COMPILER_SKIPPED_RESOURCES
Thanks!