Rollup merge of #127359 - GuillaumeGomez:improve-run-make-llvm-ident-code, r=jieyouxu
Improve run make llvm ident code I took the commits that are not blocking https://github.com/rust-lang/rust/pull/127237. r? `@Kobzol`
This commit is contained in:
commit
4fd3b123bc
@ -75,11 +75,12 @@ pub fn arg<S>(&mut self, arg: S) -> &mut Self
|
|||||||
/// Generic command arguments provider. Prefer specific helper methods if possible.
|
/// Generic command arguments provider. Prefer specific helper methods if possible.
|
||||||
/// Note that for some executables, arguments might be platform specific. For C/C++
|
/// Note that for some executables, arguments might be platform specific. For C/C++
|
||||||
/// compilers, arguments might be platform *and* compiler specific.
|
/// compilers, arguments might be platform *and* compiler specific.
|
||||||
pub fn args<S>(&mut self, args: &[S]) -> &mut Self
|
pub fn args<S, V>(&mut self, args: V) -> &mut Self
|
||||||
where
|
where
|
||||||
S: AsRef<ffi::OsStr>,
|
S: AsRef<ffi::OsStr>,
|
||||||
|
V: AsRef<[S]>,
|
||||||
{
|
{
|
||||||
self.cmd.args(args);
|
self.cmd.args(args.as_ref());
|
||||||
self
|
self
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ fn main() {
|
|||||||
files.push(path.to_path_buf());
|
files.push(path.to_path_buf());
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
cmd(llvm_bin_dir().join("llvm-dis")).args(&files).run();
|
cmd(llvm_bin_dir().join("llvm-dis")).args(files).run();
|
||||||
|
|
||||||
// Check LLVM IR files (including temporary outputs) have `!llvm.ident`
|
// Check LLVM IR files (including temporary outputs) have `!llvm.ident`
|
||||||
// named metadata, reusing the related codegen test.
|
// named metadata, reusing the related codegen test.
|
||||||
|
Loading…
Reference in New Issue
Block a user