From cdb68224054eddddb0c1d2519f9c12b654a6ff8f Mon Sep 17 00:00:00 2001 From: Graydon Hoare Date: Wed, 4 May 2011 16:53:42 -0700 Subject: Add a structure for passing option flags around the compiler, put it in session, and use it. --- src/comp/front/creader.rs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/comp/front') 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, crate_cache=@common.new_str_hash[int](), - library_search_paths=library_search_paths, + library_search_paths=sess.get_opts().library_search_paths, mutable next_crate_num=1 ); -- cgit v1.2.3