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

@ -460,7 +460,7 @@ pub fn run<App: Application>(flags: App::Flags) -> iced::Result {
let mut settings = helper.window_settings();
settings.resizable = None;
#[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);
}