about summary refs log tree commit diff
path: root/src/liballoc_jemalloc/lib.rs
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2017-01-22 12:53:35 -0800
committerAlex Crichton <alex@alexcrichton.com>2017-01-26 23:47:39 -0800
commita5561ce2b94c33add47d288e1826183c511ec9fa (patch)
tree14e4e5f4daabb28b66b7c4a58d7f08e930d2a3b7 /src/liballoc_jemalloc/lib.rs
parent025fb7de09dfcf5fbc19c5d1b6bed168ac987e6c (diff)
downloadrust-a5561ce2b94c33add47d288e1826183c511ec9fa.tar.gz
rust-a5561ce2b94c33add47d288e1826183c511ec9fa.zip
rustc: Don't export builtins/panic/alloc syms
This hides symbols from various unstable and implementation-detail
crates of the standard library. Although typically transitive exported
`pub extern` functions are exported from cdylibs, these crates aren't
necessary as they're all implementation details.

Closes #34493
Diffstat (limited to 'src/liballoc_jemalloc/lib.rs')
-rw-r--r--src/liballoc_jemalloc/lib.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/liballoc_jemalloc/lib.rs b/src/liballoc_jemalloc/lib.rs
index 241f8149d24..fc8a5455d1d 100644
--- a/src/liballoc_jemalloc/lib.rs
+++ b/src/liballoc_jemalloc/lib.rs
@@ -143,7 +143,7 @@ mod imp {
     // we're building on doesn't have them defined, so just make sure the symbols
     // are available.
     #[no_mangle]
-    #[cfg(target_os = "android")]
+    #[cfg(all(target_os = "android", not(cargobuild)))]
     pub extern "C" fn pthread_atfork(_prefork: *mut u8,
                                      _postfork_parent: *mut u8,
                                      _postfork_child: *mut u8)