rewrite issue-14500 to rmake
This commit is contained in:
parent
3349155ac0
commit
f2de5fb2ae
4 changed files with 45 additions and 16 deletions
|
|
@ -150,6 +150,20 @@ impl Rustc {
|
|||
self
|
||||
}
|
||||
|
||||
/// Pass a codegen option.
|
||||
pub fn codegen_option(&mut self, option: &str) -> &mut Self {
|
||||
self.cmd.arg("-C");
|
||||
self.cmd.arg(option);
|
||||
self
|
||||
}
|
||||
|
||||
/// Add a directory to the library search path.
|
||||
pub fn library_search_path<P: AsRef<Path>>(&mut self, path: P) -> &mut Self {
|
||||
self.cmd.arg("-L");
|
||||
self.cmd.arg(path.as_ref());
|
||||
self
|
||||
}
|
||||
|
||||
/// Specify the edition year.
|
||||
pub fn edition(&mut self, edition: &str) -> &mut Self {
|
||||
self.cmd.arg("--edition");
|
||||
|
|
|
|||
|
|
@ -99,7 +99,6 @@ run-make/issue-107094/Makefile
|
|||
run-make/issue-10971-temps-dir/Makefile
|
||||
run-make/issue-109934-lto-debuginfo/Makefile
|
||||
run-make/issue-11908/Makefile
|
||||
run-make/issue-14500/Makefile
|
||||
run-make/issue-14698/Makefile
|
||||
run-make/issue-15460/Makefile
|
||||
run-make/issue-18943/Makefile
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue