gentoo/dev-qt/qt-creator/files/qt-creator-12.0.0-musl-no-malloc-trim.patch
Ionen Wolkens 221865a1af
dev-qt/qt-creator: update live
Not much to update, but next release is close and checking state.

Tests pass except tst_utils_deviceshell which is failing in upstream's
CI as well (unless QTC_USE_QPROCESS=false). The change causing this is
not included in 12.0.0rc1 though, so not going to worry about it.

Signed-off-by: Ionen Wolkens <ionen@gentoo.org>
2023-11-15 19:14:47 -05:00

9 lines
343 B
Diff

malloc_trim() is unavailable with musl
--- a/src/plugins/coreplugin/icore.cpp
+++ b/src/plugins/coreplugin/icore.cpp
@@ -1276,3 +1276,3 @@
// glibc may not actually free memory in free().
-#ifdef Q_OS_LINUX
+#if defined(Q_OS_LINUX) && defined(__GLIBC__)
connect(&m_trimTimer, &QTimer::timeout, this, [] { malloc_trim(0); });