diff options
| author | Michael Neumann <mneumann@ntecs.de> | 2016-04-02 18:40:59 +0200 |
|---|---|---|
| committer | Michael Neumann <mneumann@ntecs.de> | 2016-04-02 18:40:59 +0200 |
| commit | 9f3de647326fbe50e0e283b9018ab7c41abccde3 (patch) | |
| tree | 92bab32fd72fd4e25c3b24d7e32af8e380055284 /src/liballoc_jemalloc/build.rs | |
| parent | 235d77457d80b549dad3ac36d94f235208a1eafb (diff) | |
| download | rust-9f3de647326fbe50e0e283b9018ab7c41abccde3.tar.gz rust-9f3de647326fbe50e0e283b9018ab7c41abccde3.zip | |
Prefix jemalloc on DragonFly to prevent segfaults.
Similar to commits ed015456a114ae907a36af80c06f81ea93182a24 (iOS) and e3b414d8612314e74e2b0ebde1ed5c6997d28e8d (Android)
Diffstat (limited to 'src/liballoc_jemalloc/build.rs')
| -rw-r--r-- | src/liballoc_jemalloc/build.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/liballoc_jemalloc/build.rs b/src/liballoc_jemalloc/build.rs index 9e2090c3246..5d521913b48 100644 --- a/src/liballoc_jemalloc/build.rs +++ b/src/liballoc_jemalloc/build.rs @@ -86,6 +86,8 @@ fn main() { // should be good to go! cmd.arg("--with-jemalloc-prefix=je_"); cmd.arg("--disable-tls"); + } else if target.contains("dragonfly") { + cmd.arg("--with-jemalloc-prefix=je_"); } if cfg!(feature = "debug-jemalloc") { |
