auto merge of #14970 : nkoep/rust/patch-1, r=huonw
Compiling a crate with `rustc --crate-type=lib` produces an rlib file, not a shared object. The latter is only produced for `--crate-type=dylib`.
This commit is contained in:
commit
acc944a35c
1 changed files with 1 additions and 1 deletions
|
@ -3247,7 +3247,7 @@ fn main() { println!("hello {}", world::explore()); }
|
|||
Now compile and run like this (adjust to your platform if necessary):
|
||||
|
||||
~~~~console
|
||||
$ rustc --crate-type=lib world.rs # compiles libworld-<HASH>-0.42.so
|
||||
$ rustc --crate-type=lib world.rs # compiles libworld-<HASH>-0.42.rlib
|
||||
$ rustc main.rs -L . # compiles main
|
||||
$ ./main
|
||||
"hello world"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue