From d6a23a975d9173af8d099450f40cb5b9809644a1 Mon Sep 17 00:00:00 2001 From: Jia Yuan Lo Date: Fri, 10 May 2024 07:29:33 +0800 Subject: [PATCH] Fix build for Android --- crates/maple/Cargo.toml | 2 +- crates/maple/src/main.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/crates/maple/Cargo.toml b/crates/maple/Cargo.toml index c5b6abb98..73d03a996 100644 --- a/crates/maple/Cargo.toml +++ b/crates/maple/Cargo.toml @@ -17,7 +17,7 @@ tokio = { workspace = true, features = ["rt"] } cli = { workspace = true } upgrade = { workspace = true } -[target.'cfg(not(target_env = "msvc"))'.dependencies] +[target.'cfg(not(any(target_env = "msvc", target_os = "android")))'.dependencies] tikv-jemallocator = "0.5" [build-dependencies] diff --git a/crates/maple/src/main.rs b/crates/maple/src/main.rs index 12a15cc45..1b04773f5 100644 --- a/crates/maple/src/main.rs +++ b/crates/maple/src/main.rs @@ -1,7 +1,7 @@ use clap::Parser; use cli::{Args, RunCmd}; -#[cfg(not(target_env = "msvc"))] +#[cfg(not(any(target_env = "msvc", target_os = "android")))] #[global_allocator] static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;