We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Cc::output
1 parent dcc9a8f commit b0d0cc6Copy full SHA for b0d0cc6
src/tools/run-make-support/src/cc.rs
@@ -80,6 +80,13 @@ impl Cc {
80
self
81
}
82
83
+ /// Specify path of the output binary.
84
+ pub fn output<P: AsRef<Path>>(&mut self, path: P) -> &mut Self {
85
+ self.cmd.arg("-o");
86
+ self.cmd.arg(path.as_ref());
87
+ self
88
+ }
89
+
90
/// Get the [`Output`][::std::process::Output] of the finished process.
91
pub fn command_output(&mut self) -> ::std::process::Output {
92
self.cmd.output().expect("failed to get output of finished process")
0 commit comments