diff --git a/server-cli/src/main.rs b/server-cli/src/main.rs index 6954b5839f..5d76bfb444 100644 --- a/server-cli/src/main.rs +++ b/server-cli/src/main.rs @@ -1,9 +1,9 @@ #![deny(unsafe_code)] -#[cfg(not(target_os = "windows"))] +#[cfg(not(target_env = "msvc"))] use jemallocator::Jemalloc; -#[cfg(not(target_os = "windows"))] +#[cfg(not(target_env = "msvc"))] #[global_allocator] static GLOBAL: Jemalloc = Jemalloc; diff --git a/voxygen/src/main.rs b/voxygen/src/main.rs index 0ff0bc408c..65255bbcf6 100644 --- a/voxygen/src/main.rs +++ b/voxygen/src/main.rs @@ -12,10 +12,10 @@ pub mod discord; #[cfg(feature = "discord")] use std::sync::Mutex; -#[cfg(not(target_os = "windows"))] +#[cfg(not(target_env = "msvc"))] use jemallocator::Jemalloc; -#[cfg(not(target_os = "windows"))] +#[cfg(not(target_env = "msvc"))] #[global_allocator] static GLOBAL: Jemalloc = Jemalloc;