Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support OpenBSD #3707

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion crates/biome_cli/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ tokio = { workspace = true, features = ["process"] }
[target.'cfg(windows)'.dependencies]
mimalloc = "0.1.43"

[target.'cfg(all(target_family="unix", not(all(target_arch = "aarch64", target_env = "musl"))))'.dependencies]
[target.'cfg(all(target_family="unix", not(all(target_arch = "aarch64", target_env = "musl")), not(target_os = "openbsd")))'.dependencies]
tikv-jemallocator = "0.6.0"

[dev-dependencies]
Expand Down
8 changes: 6 additions & 2 deletions crates/biome_cli/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ static GLOBAL: mimalloc::MiMalloc = mimalloc::MiMalloc;
#[global_allocator]
static GLOBAL: tikv_jemallocator::Jemalloc = tikv_jemallocator::Jemalloc;

// Jemallocator does not work on aarch64 with musl, so we'll use the system allocator instead
#[cfg(all(target_env = "musl", target_os = "linux", target_arch = "aarch64"))]
// Jemallocator does not work on aarch64 with musl, or on OpenBSD, so we'll use
// the system allocator instead
#[cfg(any(
all(target_env = "musl", target_os = "linux", target_arch = "aarch64"),
target_os = "openbsd"
))]
#[global_allocator]
static GLOBAL: std::alloc::System = std::alloc::System;

Expand Down
2 changes: 1 addition & 1 deletion xtask/bench/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ url = "2.5.2"
[target.'cfg(target_os = "windows")'.dependencies]
mimalloc = "0.1.43"

[target.'cfg(all(target_family="unix", not(all(target_arch = "aarch64", target_env = "musl"))))'.dependencies]
[target.'cfg(all(target_family="unix", not(all(target_arch = "aarch64", target_env = "musl")), not(target_os = "openbsd")))'.dependencies]
tikv-jemallocator = "0.6.0"

[features]
Expand Down
Loading