This website requires JavaScript.
Explore
Help
Register
Sign In
rust-lang
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Actions
1
Packages
Projects
Releases
Wiki
Activity
Files
359bfa901b9d8eddbed7b88b6716dbb77b7bfb95
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-02 23:02:53 -08:00
#![
crate_type =
"
dylib
"
]
extern
crate
foo
;
#[
no_mangle
]
Update code to account for extern ABI requirement
2020-09-01 17:28:11 -04: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-02 23:02:53 -08:00
foo
::
foo
(
)
;
}
Reference in New Issue
Copy Permalink