dll_suffix: ".dylib".to_string(),
archive_format: "bsd".to_string(),
pre_link_args: Vec::new(),
- exe_allocation_crate: super::best_allocator(),
+ exe_allocation_crate: super::maybe_jemalloc(),
.. Default::default()
}
}
has_rpath: true,
position_independent_executables: true,
archive_format: "gnu".to_string(),
- exe_allocation_crate: super::best_allocator(),
+ exe_allocation_crate: "alloc_system".to_string(),
.. Default::default()
}
),
position_independent_executables: true,
archive_format: "gnu".to_string(),
- exe_allocation_crate: super::best_allocator(),
+ exe_allocation_crate: super::maybe_jemalloc(),
.. Default::default()
}
}
executables: true,
has_rpath: true,
archive_format: "gnu".to_string(),
- exe_allocation_crate: super::best_allocator(),
+ exe_allocation_crate: super::maybe_jemalloc(),
.. Default::default()
}
],
position_independent_executables: true,
archive_format: "gnu".to_string(),
- exe_allocation_crate: super::best_allocator(),
+ exe_allocation_crate: super::maybe_jemalloc(),
.. Default::default()
}
}
}
}
-fn best_allocator() -> String {
+fn maybe_jemalloc() -> String {
if cfg!(disable_jemalloc) {
"alloc_system".to_string()
} else {
),
position_independent_executables: true,
archive_format: "gnu".to_string(),
- exe_allocation_crate: super::best_allocator(),
+ exe_allocation_crate: "alloc_system".to_string(),
.. Default::default()
}
}
// Always enable DEP (NX bit) when it is available
"-Wl,--nxcompat".to_string(),
),
- exe_allocation_crate: super::best_allocator(),
+ exe_allocation_crate: super::maybe_jemalloc(),
.. Default::default()
}
"/NXCOMPAT".to_string(),
],
archive_format: "gnu".to_string(),
- exe_allocation_crate: super::best_allocator(),
+ exe_allocation_crate: "alloc_system".to_string(),
.. Default::default()
}