Skip to content

Commit e5e4744

Browse files
author
Dave Huseby
committed
Fixes #27886 -- bitrig does not use jemalloc (yet)
1 parent 1661947 commit e5e4744

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

src/test/compile-fail/allocator-dylib-is-system.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
// ignore-msvc everything is the system allocator on msvc
1212
// ignore-musl no dylibs on musl yet
13+
// ignore-bitrig no jemalloc on bitrig
1314
// aux-build:allocator-dylib.rs
1415
// no-prefer-dynamic
1516
// error-pattern: cannot link together two allocators

src/test/compile-fail/allocator-rust-dylib-is-jemalloc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
// ignore-msvc everything is the system allocator on msvc
1212
// ignore-musl no dylibs on musl right now
13+
// ignore-bitrig no jemalloc on bitrig
1314
// aux-build:allocator-dylib2.rs
1415
// error-pattern: cannot link together two allocators
1516

src/test/run-pass/allocator-default.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010

1111
#![feature(alloc_jemalloc, alloc_system)]
1212

13-
#[cfg(not(target_env = "msvc"))]
13+
#[cfg(not(any(target_env = "msvc", target_os = "bitrig")))]
1414
extern crate alloc_jemalloc;
15-
#[cfg(target_env = "msvc")]
15+
#[cfg(any(target_env = "msvc", target_os = "bitrig"))]
1616
extern crate alloc_system;
1717

1818
fn main() {

src/test/run-pass/allocator-jemalloc.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
// no-prefer-dynamic
1212
// ignore-msvc no jemalloc on msvc
13+
// ignore-bitrig no jemalloc on bitrig either
1314

1415
#![feature(alloc_jemalloc)]
1516

0 commit comments

Comments
 (0)