about summary refs log tree commit diff
path: root/src/librustpkg/context.rs
AgeCommit message (Collapse)AuthorLines
2013-09-10rustpkg: Pass command-line arguments to rustcTim Chevalier-3/+222
rustpkg now accepts most of rustc's command-line arguments and passes them along to rustc when building or installing. A few rarely-used arguments aren't implemented yet. rustpkg doesn't support flags that don't make sense with rustpkg (for example, --bin and --lib, which get inferred from crate file names). Closes #8522
2013-09-08rustpkg: Address review comments from JackTim Chevalier-24/+23
2013-09-08rustpkg: Use workcacheTim Chevalier-27/+37
rustpkg now uses the workcache library to avoid recompilation. Hooray!
2013-08-30rustpkg: Allow package directories to appear in the RUST_PATHTim Chevalier-0/+5
This commit adds a rustpkg flag, --rust-path-hack, that allows rustpkg to *search* inside package directories if they appear in the RUST_PATH, while *building* libraries and executables into a different target directory. This behavior is hidden behind a flag because I believe we only want to support it temporarily, to make it easier to port servo to rustpkg. This commit also includes a fix for how rustpkg fetches sources from git repositories -- it uses a temporary directory as the target when invoking `git clone`, then moves that directory into the workspace if the clone was successful. (The old behavior was that when the `git clone` failed, the empty target directory would be left lying around anyway.)
2013-08-19rustpkg: Un-ignore most of the remaining testsTim Chevalier-0/+11
This necessitated some cleanup to how we parse library filenames when searching for libraries, since rustpkg may now create filenames that contain '-' characters. Also cleaned up how rustpkg passes the sysroot to a custom build script.
2013-08-09std/rustc/rustpkg/syntax: Support the `extern mod = ...` formTim Chevalier-0/+24
This commit allows you to write: extern mod x = "a/b/c"; which means rustc will search in the RUST_PATH for a package with ID a/b/c, and bind it to the name `x` if it's found. Incidentally, move get_relative_to from back::rpath into std::path
2013-06-29Great renaming: propagate throughout the rest of the codebaseCorey Richardson-2/+1
2013-05-22libextra: Rename the actual metadata names of libcore to libstd and libstd ↵Patrick Walton-0/+2
to libextra
2013-05-03rustpkg: Handle sysroot more correctlyTim Chevalier-0/+3
In rustpkg, pass around sysroot; in rustpkg tests, set the sysroot manually so that tests can find libcore and such. With bonus metadata::filesearch refactoring to avoid copies.
2013-04-24rustpkg: Preliminary work on install commandTim Chevalier-0/+21
Mostly just tests (that are ignored); install command is still stubbed out.