aboutsummaryrefslogtreecommitdiff
path: root/src/comp/front/creader.rs
diff options
context:
space:
mode:
authorGraydon Hoare <[email protected]>2011-05-04 16:53:42 -0700
committerGraydon Hoare <[email protected]>2011-05-04 16:59:21 -0700
commitcdb68224054eddddb0c1d2519f9c12b654a6ff8f (patch)
treecf2adf7393a984ca1a96c73eddb43270aba1cca2 /src/comp/front/creader.rs
parentAdd *.pyc to .gitignore (diff)
downloadrust-cdb68224054eddddb0c1d2519f9c12b654a6ff8f.tar.xz
rust-cdb68224054eddddb0c1d2519f9c12b654a6ff8f.zip
Add a structure for passing option flags around the compiler, put it in session, and use it.
Diffstat (limited to 'src/comp/front/creader.rs')
-rw-r--r--src/comp/front/creader.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/comp/front/creader.rs b/src/comp/front/creader.rs
index c8b31159..cdbafe5a 100644
--- a/src/comp/front/creader.rs
+++ b/src/comp/front/creader.rs
@@ -459,12 +459,11 @@ fn fold_view_item_use(&env e, &span sp, ast.ident ident,
// Reads external crates referenced by "use" directives.
fn read_crates(session.session sess,
- @ast.crate crate,
- vec[str] library_search_paths) -> @ast.crate {
+ @ast.crate crate) -> @ast.crate {
auto e = @rec(
sess=sess,
[email protected]_str_hash[int](),
- library_search_paths=library_search_paths,
+ library_search_paths=sess.get_opts().library_search_paths,
mutable next_crate_num=1
);