Skip to content

Commit

Permalink
Commit 6 : Add pathbuf
Browse files Browse the repository at this point in the history
  • Loading branch information
abhay-51 committed Mar 3, 2024
1 parent f7fbe47 commit 979c9f4
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
4 changes: 3 additions & 1 deletion tests/run-make/alloc-no-oom-handling/rmake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@
extern crate run_make_support;

use run_make_support::rustc;
use std::path::PathBuf;

fn main() {
let lib_path = PathBuf::from("../../../library/alloc/src/lib.rs");
rustc()
.arg("--edition")
.arg("2021")
.arg("-Dwarnings")
.arg("--crate-type")
.arg("rlib")
.arg("../../../library/alloc/src/lib.rs")
.arg(lib_path.to_str().unwrap())
.arg("--cfg")
.arg("no_global_oom_handling")
.run();
Expand Down
4 changes: 3 additions & 1 deletion tests/run-make/alloc-no-rc/rmake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@
extern crate run_make_support;

use run_make_support::rustc;
use std::path::PathBuf;

fn main() {
let lib_path = PathBuf::from("../../../library/alloc/src/lib.rs");
rustc()
.arg("--edition")
.arg("2021")
.arg("-Dwarnings")
.arg("--crate-type")
.arg("rlib")
.arg("../../../library/alloc/src/lib.rs")
.arg(lib_path.to_str().unwrap())
.arg("--cfg")
.arg("no_rc")
.run();
Expand Down
4 changes: 3 additions & 1 deletion tests/run-make/alloc-no-sync/rmake.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,17 @@
extern crate run_make_support;

use run_make_support::rustc;
use std::path::PathBuf;

fn main() {
let lib_path = PathBuf::from("../../../library/alloc/src/lib.rs");
rustc()
.arg("--edition")
.arg("2021")
.arg("-Dwarnings")
.arg("--crate-type")
.arg("rlib")
.arg("../../../library/alloc/src/lib.rs")
.arg(lib_path.to_str().unwrap())
.arg("--cfg")
.arg("no_sync")
.run();
Expand Down

0 comments on commit 979c9f4

Please sign in to comment.