rust/src/test
Brian Anderson f466a2fa8f rustc: -L also indicates the location of native libraries
-L currently specifies paths to search for Rust crates

Building crates that use native libraries is difficult. When the
library is located somewhere unexpected there is no way
to tell rustc additional paths to look in.

If libclang is located at `.` then rustc is not going to
know that and linking will fail.

To get around that I often end up inserting

    #[link_args = "-L."] native mod m { }

into other crates to get them to build.

Now you just `rustc -L .` and it builds.

This doesn't do any rpathing so it's still up to somebody else
to put the library somewhere it will be found or use LD_LIBRARY_PATH

This feature comes with a single, XFAILed test, because I could
not think of a way to test it. Odd.
2012-04-16 12:33:21 -07:00
..
auxiliary Test that a class can implement an interface defined in a different crate 2012-04-11 18:55:30 -07:00
bench Convert old-style for loops to new-style 2012-04-06 20:38:23 +02:00
compile-fail Forbid deinitializing upvars in typestate 2012-04-15 01:05:41 -07:00
pretty Do not consider ty_bot to be a "resolved type". 2012-04-07 17:12:48 -07:00
run-fail Add a run-fail test for result::get, get rid of a FIXME. Also some random other tests, mostly xfailed. 2012-04-12 20:24:07 -07:00
run-pass rustc: -L also indicates the location of native libraries 2012-04-16 12:33:21 -07:00