Skip to content

Commit

Permalink
aarch64 windows
Browse files Browse the repository at this point in the history
  • Loading branch information
phoepsilonix committed Dec 15, 2024
1 parent d0216c1 commit ba87365
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ members = [
resolver = "2"

[workspace.package]
version = "0.6.3"
version = "0.6.4"
authors = ["Masato TOYOSHIMA", "phoepsilonix <[email protected]>"]
edition = "2021"
rust-version = "1.83"
Expand Down Expand Up @@ -55,6 +55,8 @@ version.workspace = true
[dependencies]
lib-dict-to-mozc = { workspace = true }
argh = { version = "0.1.12", default-features = false }

[target.'cfg(any(not(any(target_arch = "arm", target_arch = "aarch64")),all(target_arch = "aarch64", not(target_os = "windows"))))'.dependencies]
mimalloc = { workspace = true, optional = true }

[package.metadata.release]
Expand Down
1 change: 1 addition & 0 deletions dist-workspace.toml
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ targets = [
"x86_64-unknown-linux-gnu",
"x86_64-unknown-linux-musl",
"x86_64-pc-windows-msvc",
"aarch64-pc-windows-msvc",
]
8 changes: 7 additions & 1 deletion src/bin/dict-to-mozc.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
#[cfg(all(not(target_arch = "arm"), feature = "use-mimalloc"))]
#[cfg(all(
feature = "use-mimalloc",
any(
not(any(target_arch = "arm", target_arch = "aarch64")),
all(target_arch = "aarch64", not(target_os = "windows"))
)
))]
#[global_allocator]
static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;

Expand Down

0 comments on commit ba87365

Please sign in to comment.