aboutsummaryrefslogtreecommitdiffstats
path: root/tools/qmlcachegen/qmlcachegen.cpp
diff options
context:
space:
mode:
authorJ-P Nurmi <jpnurmi@qt.io>2017-12-08 12:59:48 +0100
committerLars Knoll <lars.knoll@qt.io>2017-12-08 16:25:06 +0000
commit93ad68de3a3873cbdc33336520bd0b6443312ec1 (patch)
tree84c0c658e2b3976c91b1efc9a4696c72323e988b /tools/qmlcachegen/qmlcachegen.cpp
parent9bf36df828517059f6af46dac49c1ab07d98e7e7 (diff)
Fix build for QML modules with qmlcache config enabled
Since we're now storing bytecode in the cache, the --check-if-supported option doesn't make sense anymore. Return EXIT_SUCCESS for backwards compatibility. qmlcache.prf no longer needs the system call either. Change-Id: Ic3e6de4e404a3d255b57d4bc14e1206c528925a8 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Simon Hausmann <simon.hausmann@qt.io> Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Diffstat (limited to 'tools/qmlcachegen/qmlcachegen.cpp')
-rw-r--r--tools/qmlcachegen/qmlcachegen.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/tools/qmlcachegen/qmlcachegen.cpp b/tools/qmlcachegen/qmlcachegen.cpp
index d8af157b8e..807a213f14 100644
--- a/tools/qmlcachegen/qmlcachegen.cpp
+++ b/tools/qmlcachegen/qmlcachegen.cpp
@@ -345,12 +345,10 @@ int main(int argc, char **argv)
return EXIT_FAILURE;
}
-// if (parser.isSet(checkIfSupportedOption)) {
-// if (isel.isNull())
-// return EXIT_FAILURE;
-// else
-// return EXIT_SUCCESS;
-// }
+ // Since we're now storing bytecode in the cache, the --check-if-supported option
+ // doesn't make sense anymore. Return EXIT_SUCCESS for backwards compatibility.
+ if (parser.isSet(checkIfSupportedOption))
+ return EXIT_SUCCESS;
const QStringList sources = parser.positionalArguments();
if (sources.isEmpty()){