Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rust: add flag to turn off extractor path resolution #18813

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Merge branch 'main' into redsun82/rust-turn-off-ra-resolution
  • Loading branch information
Paolo Tranquilli committed Feb 27, 2025
commit a444bbc080f3f2b9c0a08f0ca36c2e9690cb7fae
6 changes: 6 additions & 0 deletions rust/extractor/src/config.rs
Original file line number Diff line number Diff line change
@@ -60,6 +60,12 @@ pub struct Config {
pub qltest: bool,
pub qltest_cargo_check: bool,
pub qltest_dependencies: Vec<String>,
pub sysroot: Option<PathBuf>,
pub sysroot_src: Option<PathBuf>,
pub rustc_src: Option<PathBuf>,
pub build_script_command: Vec<String>,
pub extra_includes: Vec<PathBuf>,
pub proc_macro_server: Option<PathBuf>,
pub skip_path_resolution: bool,
}

3 changes: 2 additions & 1 deletion rust/extractor/src/main.rs
Original file line number Diff line number Diff line change
@@ -244,7 +244,8 @@ fn main() -> anyhow::Result<()> {
}
extractor.extract_without_semantics(file, "no manifest found");
}
let cargo_config = cfg.to_cargo_config(&cwd()?);
let cwd = cwd()?;
let (cargo_config, load_cargo_config) = cfg.to_cargo_config(&cwd);
let resolve_paths = if cfg.skip_path_resolution {
ResolvePaths::No
} else {
Loading
Oops, something went wrong.
You are viewing a condensed version of this merge commit. You can view the full changes here.