Fixes #27886 -- bitrig does not use jemalloc (yet)
This commit is contained in:
parent
1661947014
commit
e5e4744766
4 changed files with 5 additions and 2 deletions
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
// ignore-msvc everything is the system allocator on msvc
|
||||
// ignore-musl no dylibs on musl yet
|
||||
// ignore-bitrig no jemalloc on bitrig
|
||||
// aux-build:allocator-dylib.rs
|
||||
// no-prefer-dynamic
|
||||
// error-pattern: cannot link together two allocators
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
// ignore-msvc everything is the system allocator on msvc
|
||||
// ignore-musl no dylibs on musl right now
|
||||
// ignore-bitrig no jemalloc on bitrig
|
||||
// aux-build:allocator-dylib2.rs
|
||||
// error-pattern: cannot link together two allocators
|
||||
|
||||
|
|
|
|||
|
|
@ -10,9 +10,9 @@
|
|||
|
||||
#![feature(alloc_jemalloc, alloc_system)]
|
||||
|
||||
#[cfg(not(target_env = "msvc"))]
|
||||
#[cfg(not(any(target_env = "msvc", target_os = "bitrig")))]
|
||||
extern crate alloc_jemalloc;
|
||||
#[cfg(target_env = "msvc")]
|
||||
#[cfg(any(target_env = "msvc", target_os = "bitrig"))]
|
||||
extern crate alloc_system;
|
||||
|
||||
fn main() {
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@
|
|||
|
||||
// no-prefer-dynamic
|
||||
// ignore-msvc no jemalloc on msvc
|
||||
// ignore-bitrig no jemalloc on bitrig either
|
||||
|
||||
#![feature(alloc_jemalloc)]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue