diff options
author | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2025-06-17 17:52:06 +0300 |
---|---|---|
committer | Dmitry Marakasov <amdmi3@FreeBSD.org> | 2025-06-17 18:02:21 +0300 |
commit | 4a6adc4bd85e2fa4805d34af3641a17409eeee06 (patch) | |
tree | 97918a5c662e55dbf995644c903257cf30496bda /textproc/difftastic/files/patch-jemalloc | |
parent | audio/libogg: maintenance update to 1.3.6 (diff) |
textproc/difftastic: update 0.63.0 → 0.64.0
Diffstat (limited to 'textproc/difftastic/files/patch-jemalloc')
-rw-r--r-- | textproc/difftastic/files/patch-jemalloc | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/textproc/difftastic/files/patch-jemalloc b/textproc/difftastic/files/patch-jemalloc new file mode 100644 index 000000000000..d4b2d2c034cf --- /dev/null +++ b/textproc/difftastic/files/patch-jemalloc @@ -0,0 +1,29 @@ +Upstream has switched from mimalloc to jemalloc in 0.64.0, but +tikv-jemallocator does not currently build on FreeBSD, so just +switch it to system allocator which is jemalloc anyway. +--- Cargo.toml.orig 2025-06-15 21:48:50 UTC ++++ Cargo.toml +@@ -106,7 +106,7 @@ tree-sitter-yaml = "0.7.0" + tree-sitter-xml = "0.7.0" + tree-sitter-yaml = "0.7.0" + +-[target.'cfg(not(target_env = "msvc"))'.dependencies] ++[target.'cfg(not(any(target_env = "msvc", target_os = "freebsd")))'.dependencies] + tikv-jemallocator = "0.6" + + [dev-dependencies] +--- src/main.rs.orig 2025-06-15 21:48:50 UTC ++++ src/main.rs +@@ -86,10 +86,10 @@ use crate::parse::syntax; + /// + /// For reference, Jemalloc uses 10-20% more time (although up to 33% + /// more instructions) when testing on sample files. +-#[cfg(not(target_env = "msvc"))] ++#[cfg(not(any(target_env = "msvc", target_os = "freebsd")))] + use tikv_jemallocator::Jemalloc; + +-#[cfg(not(target_env = "msvc"))] ++#[cfg(not(any(target_env = "msvc", target_os = "freebsd")))] + #[global_allocator] + static GLOBAL: Jemalloc = Jemalloc; + |