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
5e94b5faf1
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 01:02:53 -06:00
#![
crate_type =
"
dylib
"
]
extern
crate
foo
;
#[
no_mangle
]
Update code to account for extern ABI requirement
2020-09-01 16:28:11 -05: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 01:02:53 -06:00
foo
::
foo
(
)
;
}
Reference in New Issue
Copy Permalink