Implement -L builtin:$path

This commit is contained in:
Lukas Wirth 2024-02-29 14:16:32 +01:00 committed by Lukas Wirth
parent 35936c4839
commit 91547573af
4 changed files with 68 additions and 28 deletions

View file

@ -460,8 +460,6 @@ impl Options {
&matches.free[0]
});
let libs =
matches.opt_strs("L").iter().map(|s| SearchPath::from_cli_opt(early_dcx, s)).collect();
let externs = parse_externs(early_dcx, matches, &unstable_opts);
let extern_html_root_urls = match parse_extern_html_roots(matches) {
Ok(ex) => ex,
@ -626,6 +624,12 @@ impl Options {
let target = parse_target_triple(early_dcx, matches);
let libs = matches
.opt_strs("L")
.iter()
.map(|s| SearchPath::from_cli_opt(None, &target, early_dcx, s))
.collect();
let show_coverage = matches.opt_present("show-coverage");
let crate_types = match parse_crate_types_from_list(matches.opt_strs("crate-type")) {