mirror of
https://github.com/MaskRay/ccls.git
synced 2024-11-26 01:21:57 +00:00
Check __GLIBC__ for malloc_trim instead of __linux__ (#230)
This commit is contained in:
parent
22ef88045f
commit
e2ce134e1f
@ -259,7 +259,7 @@ std::vector<std::string> GetPlatformClangArguments() {
|
||||
}
|
||||
|
||||
void FreeUnusedMemory() {
|
||||
#if defined(__linux__)
|
||||
#if defined(__GLIBC__)
|
||||
malloc_trim(0);
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user