1
Fork 0

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:
bors 2014-06-17 13:36:35 +00:00
commit acc944a35c

View file

@ -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"