fix(examples): gate malloc_trim to gcc in the multiple_runs example

This commit is contained in:
Loric ANDRE 2026-07-23 23:17:51 +02:00
parent 88ce5b97ac
commit e929c512e3

View file

@ -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);
}