Skip to content

Commit

Permalink
Fix build for Android
Browse files Browse the repository at this point in the history
  • Loading branch information
truboxl committed May 9, 2024
1 parent 567ba61 commit d6a23a9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/maple/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down
2 changes: 1 addition & 1 deletion crates/maple/src/main.rs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down

0 comments on commit d6a23a9

Please sign in to comment.