projects/guix·blob python-team · refs

29 lines · 1.2 KiB

1Retrieved from
2https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/development/libraries/qt-6/patches/qtdeclarative-default-disable-qmlcache.patch
3
4From 2d561e0a80f2d123a7348187975ee845f9dcd9e0 Mon Sep 17 00:00:00 2001
5From: Nick Cao <[email protected]>
6Date: Tue, 10 Oct 2023 11:12:27 -0400
7Subject: [PATCH] qtdeclarative: disable qml disk cache
8
9---
10 src/qml/jsruntime/qv4engine.cpp | 6 +-----
11 1 file changed, 1 insertion(+), 5 deletions(-)
12
13diff --git a/src/qml/jsruntime/qv4engine.cpp b/src/qml/jsruntime/qv4engine.cpp
14index d1b4c4fff6..50f8a07420 100644
15--- a/src/qml/jsruntime/qv4engine.cpp
16+++ b/src/qml/jsruntime/qv4engine.cpp
17@@ -2246,11 +2246,5 @@ ExecutionEngine::DiskCacheOptions Execut
18 {
19 if (forceDiskCache())
20 return DiskCache::Enabled;
21- if (disableDiskCache() || debugger())
22- return DiskCache::Disabled;
23- static const DiskCacheOptions options = qmlGetConfigOption<
24- DiskCacheOptions, transFormDiskCache>("QML_DISK_CACHE");
25- return hasPreview.loadAcquire()
26- ? (options & ~DiskCacheOptions(DiskCache::Aot)) // Disable AOT if preview enabled
27- : options;
28+ return DiskCache::Disabled;
29 }