Move CrateConfig from Crate to ParseSess.
This commit is contained in:
parent
17e9d9ae82
commit
cbd24757eb
39 changed files with 130 additions and 298 deletions
|
|
@ -67,12 +67,6 @@ fn compile(code: String, output: PathBuf, sysroot: PathBuf) {
|
|||
let (sess, cstore) = basic_sess(sysroot);
|
||||
let cfg = build_configuration(&sess, vec![]);
|
||||
let control = CompileController::basic();
|
||||
|
||||
compile_input(&sess, &cstore,
|
||||
cfg,
|
||||
&Input::Str { name: anon_src(), input: code },
|
||||
&None,
|
||||
&Some(output),
|
||||
None,
|
||||
&control);
|
||||
let input = Input::Str { name: anon_src(), input: code };
|
||||
compile_input(&sess, &cstore, &input, &None, &Some(output), None, &control);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue