This website requires JavaScript.
Explore
Help
Sign In
nordic-dev.net
/
rust
Watch
2
Star
0
Fork
0
You've already forked rust
mirror of
https://github.com/rust-lang/rust.git
synced
2025-02-11 06:24:24 +00:00
Code
Issues
Packages
Projects
Releases
Wiki
Activity
a7e4de13c1
rust
/
tests
/
run-make
/
static-dylib-by-default
/
bar.rs
9 lines
102 B
Rust
Raw
Normal View
History
Unescape
Escape
rustc: Default to static linking dylibs If a dylib is being produced, the compiler will now first check to see if it can be created entirely statically before falling back to dynamic dependencies. This behavior can be overridden with `-C prefer-dynamic`. Due to the alteration in behavior, this is a breaking change. Any previous users relying on dylibs implicitly maximizing dynamic dependencies should start passing `-C prefer-dynamic` to compilations. Closes #18499 [breaking-change]
2014-11-03 07:02:53 +00:00
#![
crate_type =
"
dylib
"
]
extern
crate
foo
;
#[
no_mangle
]
Update code to account for extern ABI requirement
2020-09-01 21:28:11 +00:00
pub
extern
"
C
"
fn
bar
(
)
{
rustc: Default to static linking dylibs If a dylib is being produced, the compiler will now first check to see if it can be created entirely statically before falling back to dynamic dependencies. This behavior can be overridden with `-C prefer-dynamic`. Due to the alteration in behavior, this is a breaking change. Any previous users relying on dylibs implicitly maximizing dynamic dependencies should start passing `-C prefer-dynamic` to compilations. Closes #18499 [breaking-change]
2014-11-03 07:02:53 +00:00
foo
::
foo
(
)
;
}
Reference in New Issue
Copy Permalink