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
4d55affc12
rust
/
tests
/
run-make-fulldeps
/
issue-14500
/
foo.rs
6 lines
85 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
]
Update code to account for extern ABI requirement
2020-09-01 16:28:11 -05:00
pub
extern
"
C
"
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