fix(windows): Mingw doesn't support trim

Closes: #872
This commit is contained in:
Josh Megnauth 2025-05-29 00:40:06 -04:00 committed by Michael Murphy
parent 6fb4a4a43e
commit 944c6761f7
4 changed files with 6 additions and 6 deletions

View file

@ -96,7 +96,7 @@ pub(crate) fn iced_settings<App: Application>(
///
/// Returns error on application failure.
pub fn run<App: Application>(settings: Settings, flags: App::Flags) -> iced::Result {
#[cfg(target_env = "gnu")]
#[cfg(all(target_env = "gnu", not(target_os = "windows")))]
if let Some(threshold) = settings.default_mmap_threshold {
crate::malloc::limit_mmap_threshold(threshold);
}