1
Fork 0

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
This commit is contained in:
Alex Crichton 2017-01-22 12:53:35 -08:00
parent 025fb7de09
commit a5561ce2b9
4 changed files with 50 additions and 2 deletions

View file

@ -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)