diff options
| author | bors <bors@rust-lang.org> | 2017-01-27 10:01:45 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2017-01-27 10:01:45 +0000 |
| commit | 8367fb7ba6abae89ab7e17c1b3987ee321f5bb71 (patch) | |
| tree | 21b4f4f8b07ec2058229ef9dbbb316a7155fd1b8 /src/liballoc_jemalloc/lib.rs | |
| parent | fece9c735678d152da721711f6f4aba1f0b8ab15 (diff) | |
| parent | 3d6f263b2a162974725cdcb914ba9ad9c2dbef84 (diff) | |
| download | rust-8367fb7ba6abae89ab7e17c1b3987ee321f5bb71.tar.gz rust-8367fb7ba6abae89ab7e17c1b3987ee321f5bb71.zip | |
Auto merge of #39252 - alexcrichton:less-exports, r=nrc
Hide a few more standard library symbols These commits touch up some of the symbol visibility rules for some crates related to the standard library, notably: * Symbols that are `pub extern` and `#[no_mangle]` which are internal-to-rust ABI things are no longer at the `C` export level, but the `Rust` export level. This includes allocators, panic runtimes, and compiler builtins. * The libbacktrace library is now compiled with `-fvisibility=hidden` to ensure that we don't export those symbols.
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) |
