]> git.lizzy.rs Git - rust.git/commit
rustpkg: Always write a package_id attribute into the link metadata
authorTim Chevalier <chevalier@alum.wellesley.edu>
Sat, 14 Sep 2013 01:04:45 +0000 (18:04 -0700)
committerTim Chevalier <chevalier@alum.wellesley.edu>
Sun, 15 Sep 2013 04:42:19 +0000 (21:42 -0700)
commita7e49d6e83f61989b2456c213daeb7461d9ee606
tree12519ece874dfd19459dcc0dd0c7da2ff18aab3b
parenta2231dce929a2c525df7cb10e5ab3258804a3a36
rustpkg: Always write a package_id attribute into the link metadata

For some reason, I thought it wasn't necessary to write the package_id
attribute (which rustc's filesearch checks when searching for a package)
if the package ID had a single component (like "foo") as opposed to multiple
components (like "foo/bar/quux"). This meant that
`extern mod quux = "an-awesome-library";` didn't work, even if an-awesome-library
existed in the RUST_PATH.

Fixed it.
src/librustpkg/tests.rs
src/librustpkg/util.rs