qtcreator: fix musl
This commit is contained in:
parent
f737787984
commit
e02c222e77
1 changed files with 13 additions and 0 deletions
13
srcpkgs/qtcreator/patches/musl-no-malloc_trim.patch
Normal file
13
srcpkgs/qtcreator/patches/musl-no-malloc_trim.patch
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
--- src/app/main.cpp 2020-08-25 13:26:21.000000000 +0200
|
||||||
|
+++ src/app/main.cpp 2020-09-03 14:21:38.975668939 +0200
|
||||||
|
@@ -718,8 +718,10 @@
|
||||||
|
{
|
||||||
|
m_trimTimer.setSingleShot(true);
|
||||||
|
m_trimTimer.setInterval(60000);
|
||||||
|
+#if defined(__GLIBC__)
|
||||||
|
// glibc may not actually free memory in free().
|
||||||
|
connect(&m_trimTimer, &QTimer::timeout, this, [] { malloc_trim(0); });
|
||||||
|
+#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
bool eventFilter(QObject *, QEvent *e) override
|
Loading…
Add table
Add a link
Reference in a new issue