diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2017-01-22 12:53:35 -0800 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2017-01-26 23:47:39 -0800 |
| commit | a5561ce2b94c33add47d288e1826183c511ec9fa (patch) | |
| tree | 14e4e5f4daabb28b66b7c4a58d7f08e930d2a3b7 /src/liballoc_jemalloc/lib.rs | |
| parent | 025fb7de09dfcf5fbc19c5d1b6bed168ac987e6c (diff) | |
| download | rust-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.rs | 2 |
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) |
