Sign in
rust
/
rust-lang
/
rust
/
HEAD
/
.
/
tests
/
run-make
/
native-link-modifier-whole-archive
/
native_lib_in_src.rs
blob: d5bc0c3eb697c3ac69425f06c364eb7c379f76f1 [
file
] [
log
] [
blame
]
use
std
::
io
::
Write
;
#[
link
(
name
=
"c_static_lib_with_constructor"
,
kind
=
"static"
,
modifiers
=
"-bundle,+whole-archive"
)]
extern
"C"
{}
pub
fn
hello
()
{
print
!(
"native_lib_in_src."
);
std
::
io
::
stdout
().
flush
().
unwrap
();
}