Files
localrepo/dev-qt/qt-creator/files/qt-creator-12.0.0-musl-no-malloc-trim.patch
Olivier van der Toorn 692df50613 Add dev-qt from an older version of the gentoo repo
Qt5 has been removed, we restore it since we still use it.
2026-07-03 09:45:00 +02: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); });