rename ./x test
's --rustc-args
to --compiletest-rustc-args
This commit is contained in:
parent
0ad798aec7
commit
5e872568a8
@ -552,7 +552,7 @@ fn asm_tests(env: &Env, args: &TestArg) -> Result<(), String> {
|
||||
&"--stage",
|
||||
&"0",
|
||||
&"tests/assembly/asm",
|
||||
&"--rustc-args",
|
||||
&"--compiletest-rustc-args",
|
||||
&rustc_args,
|
||||
],
|
||||
Some(&rust_dir),
|
||||
@ -1020,7 +1020,7 @@ where
|
||||
&"--stage",
|
||||
&"0",
|
||||
&format!("tests/{}", test_type),
|
||||
&"--rustc-args",
|
||||
&"--compiletest-rustc-args",
|
||||
&rustc_args,
|
||||
],
|
||||
Some(&rust_path),
|
||||
|
@ -1815,7 +1815,7 @@ NOTE: if you're sure you want to do this, please open an issue as to why. In the
|
||||
|
||||
let mut flags = if is_rustdoc { Vec::new() } else { vec!["-Crpath".to_string()] };
|
||||
flags.push(format!("-Cdebuginfo={}", builder.config.rust_debuginfo_level_tests));
|
||||
flags.extend(builder.config.cmd.rustc_args().iter().map(|s| s.to_string()));
|
||||
flags.extend(builder.config.cmd.compiletest_rustc_args().iter().map(|s| s.to_string()));
|
||||
|
||||
if suite != "mir-opt" {
|
||||
if let Some(linker) = builder.linker(target) {
|
||||
|
@ -632,7 +632,7 @@ mod dist {
|
||||
config.paths = vec!["library/std".into()];
|
||||
config.cmd = Subcommand::Test {
|
||||
test_args: vec![],
|
||||
rustc_args: vec![],
|
||||
compiletest_rustc_args: vec![],
|
||||
no_fail_fast: false,
|
||||
no_doc: true,
|
||||
doc: false,
|
||||
@ -703,7 +703,7 @@ mod dist {
|
||||
let mut config = configure(&["A-A"], &["A-A"]);
|
||||
config.cmd = Subcommand::Test {
|
||||
test_args: vec![],
|
||||
rustc_args: vec![],
|
||||
compiletest_rustc_args: vec![],
|
||||
no_fail_fast: false,
|
||||
doc: true,
|
||||
no_doc: false,
|
||||
|
@ -349,7 +349,7 @@ pub enum Subcommand {
|
||||
test_args: Vec<String>,
|
||||
/// extra options to pass the compiler when running compiletest tests
|
||||
#[arg(long, value_name = "ARGS", allow_hyphen_values(true))]
|
||||
rustc_args: Vec<String>,
|
||||
compiletest_rustc_args: Vec<String>,
|
||||
#[arg(long)]
|
||||
/// do not run doc tests
|
||||
no_doc: bool,
|
||||
@ -496,10 +496,10 @@ impl Subcommand {
|
||||
}
|
||||
}
|
||||
|
||||
pub fn rustc_args(&self) -> Vec<&str> {
|
||||
pub fn compiletest_rustc_args(&self) -> Vec<&str> {
|
||||
match *self {
|
||||
Subcommand::Test { ref rustc_args, .. } => {
|
||||
rustc_args.iter().flat_map(|s| s.split_whitespace()).collect()
|
||||
Subcommand::Test { ref compiletest_rustc_args, .. } => {
|
||||
compiletest_rustc_args.iter().flat_map(|s| s.split_whitespace()).collect()
|
||||
}
|
||||
_ => vec![],
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user