diff options
Diffstat (limited to 'src/librustpkg/api.rs')
| -rw-r--r-- | src/librustpkg/api.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustpkg/api.rs b/src/librustpkg/api.rs index 4de2572be7d..727bbcb30b4 100644 --- a/src/librustpkg/api.rs +++ b/src/librustpkg/api.rs @@ -29,6 +29,8 @@ pub fn default_context(p: Path) -> BuildContext { pub fn new_default_context(c: workcache::Context, p: Path) -> BuildContext { BuildContext { context: Context { + cfgs: ~[], + rustc_flags: RustcFlags::default(), use_rust_path_hack: false, sysroot: p }, @@ -44,7 +46,6 @@ fn binary_is_fresh(path: &str, in_hash: &str) -> bool { in_hash == digest_only_date(&Path(path)) } - pub fn new_workcache_context(p: &Path) -> workcache::Context { let db_file = p.push("rustpkg_db.json"); // ??? probably wrong debug!("Workcache database file: %s", db_file.to_str()); |
