From d73df12367749425b86b72c250bb0fba13ddfd29 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 4 Jul 2024 15:45:48 -0500 Subject: [PATCH] Don't precompile QML files with disable-prebuilts This binds us against the exact compile-time version of Qt with no forwards or backwards compatibility, so it must not be used when we could load Qt libraries from a location outside of our app bundle. --- app/app.pro | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/app/app.pro b/app/app.pro index 711c793d..1a794908 100644 --- a/app/app.pro +++ b/app/app.pro @@ -12,10 +12,13 @@ include(../globaldefs.pri) # Precompile QML files to avoid writing qmlcache on portable versions. # Since this binds the app against the Qt runtime version, we will only -# do this for Windows and Mac, since they ship with the Qt runtime. -win32|macx { - CONFIG(release, debug|release) { - CONFIG += qtquickcompiler +# do this for Windows and Mac (when disable-prebuilts is not defined), +# since they always ship with the matching build of the Qt runtime. +!disable-prebuilts { + win32|macx { + CONFIG(release, debug|release) { + CONFIG += qtquickcompiler + } } }