Skip to content

Commit

Permalink
Rewrite core-no-fp-fmt-parse in Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
Oneirical committed Mar 29, 2024
1 parent 99ef61f commit cbb476e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/tools/run-make-support/src/rustc.rs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,13 @@ impl Rustc {
self
}

/// Generic file path provider.
pub fn arg_path(&mut self, path: &[&str]) -> &mut Self {
let path_buf = path.iter().collect::<PathBuf>();
self.cmd.arg(path_buf.to_str().unwrap());
self
}

/// Generic command arguments provider. Use `.arg("-Zname")` over `.arg("-Z").arg("arg")`.
/// This method will panic if a plain `-Z` or `-C` is passed, or if `-Z <name>` or `-C <name>`
/// is passed (note the space).
Expand Down

0 comments on commit cbb476e

Please sign in to comment.