This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
920b5ee722
rust
/
src
/
test
/
run-make-fulldeps
/
issue-14500
/
foo.rs
6 lines
81 B
Rust
Raw
Normal View
History
Unescape
Escape
rustc: Preserve reachable extern fns with LTO All rust functions are internal implementation details with respect to the ABI exposed by crates, but extern fns are public components of the ABI and shouldn't be stripped. This commit serializes reachable extern fns to metadata, so when LTO is performed all of their symbols are not stripped. Closes #14500
2014-06-06 19:48:46 -05:00
#[
no_mangle
]
pub
extern
fn
foo
(
)
{
}
Preserve public static items across LTO
2015-11-06 03:51:03 -06:00
#[
no_mangle
]
pub
static
FOO_STATIC
:
u8
=
0
;
Reference in New Issue
Copy Permalink