Make opts.maybe_sysroot non-optional
build_session_options always uses materialize_sysroot anyway.
This commit is contained in:
parent
57a4736e9f
commit
b54398e4ea
9 changed files with 20 additions and 14 deletions
|
@ -46,7 +46,7 @@ fn main() {
|
|||
fn compile(code: String, output: PathBuf, sysroot: PathBuf, linker: Option<&Path>) {
|
||||
let mut opts = Options::default();
|
||||
opts.output_types = OutputTypes::new(&[(OutputType::Exe, None)]);
|
||||
opts.maybe_sysroot = Some(sysroot);
|
||||
opts.sysroot = sysroot;
|
||||
|
||||
if let Some(linker) = linker {
|
||||
opts.cg.linker = Some(linker.to_owned());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue