mirror of
https://github.com/lotabout/skim.git
synced 2026-09-09 23:06:17 -04:00
fix(examples): gate malloc_trim to gcc in the multiple_runs example
This commit is contained in:
parent
88ce5b97ac
commit
e929c512e3
|
|
@ -13,7 +13,7 @@ fn main() {
|
|||
.build()
|
||||
.unwrap();
|
||||
let res = Skim::run_with(opts, None).unwrap();
|
||||
#[cfg(target_os = "linux")]
|
||||
#[cfg(all(target_os = "linux", target_env = "gnu"))]
|
||||
unsafe {
|
||||
nix::libc::malloc_trim(0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue