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
70ddde76df
rust
/
tests
/
run-make-fulldeps
/
compiler-lookup-paths
/
d.rs
5 lines
81 B
Rust
Raw
Normal View
History
Unescape
Escape
rustc: Add knowledge of separate lookup paths This commit adds support for the compiler to distinguish between different forms of lookup paths in the compiler itself. Issue #19767 has some background on this topic, as well as some sample bugs which can occur if these lookup paths are not separated. This commits extends the existing command line flag `-L` with the same trailing syntax as the `-l` flag. Each argument to `-L` can now have a trailing `:all`, `:native`, `:crate`, or `:dependency`. This suffix indicates what form of lookup path the compiler should add the argument to. The `dependency` lookup path is used when looking up crate dependencies, the `crate` lookup path is used when looking for immediate dependencies (`extern crate` statements), and the `native` lookup path is used for probing for native libraries to insert into rlibs. Paths with `all` are used for all of these purposes (the default). The default compiler lookup path (the rustlib libdir) is by default added to all of these paths. Additionally, the `RUST_PATH` lookup path is added to all of these paths. Closes #19767
2014-12-16 16:32:02 -06:00
#![
crate_type =
"
rlib
"
]
#[
link(name =
"
native
"
, kind =
"
static
"
)
]
Update tests for extern block linting
2020-09-01 16:12:52 -05:00
extern
"
C
"
{
}
Reference in New Issue
Copy Permalink