Skip to content

Commit 2056e61

Browse files
committed
Rename variables
1 parent e5c65d4 commit 2056e61

File tree

2 files changed

+22
-23
lines changed

2 files changed

+22
-23
lines changed

Diff for: src/bootstrap/src/core/build_steps/test.rs

-1
Original file line numberDiff line numberDiff line change
@@ -1361,7 +1361,6 @@ impl Step for RunMakeSupport {
13611361
);
13621362

13631363
let mut cargo = Command::from(cargo);
1364-
cargo.env("RUSTFLAGS", "-C prefer-dynamic");
13651364
builder.run(&mut cargo);
13661365

13671366
let lib_name = "librun_make_support.rlib";

Diff for: src/tools/compiletest/src/runtest.rs

+22-22
Original file line numberDiff line numberDiff line change
@@ -3761,10 +3761,10 @@ impl<'test> TestCx<'test> {
37613761
let stage = self.config.stage_id.split('-').next().unwrap();
37623762

37633763
// First, we construct the path to the built support library.
3764-
let mut support_dylib_path = PathBuf::new();
3765-
support_dylib_path.push(&build_root);
3766-
support_dylib_path.push(format!("{}-tools-bin", stage));
3767-
support_dylib_path.push("librun_make_support.rlib");
3764+
let mut support_lib_path = PathBuf::new();
3765+
support_lib_path.push(&build_root);
3766+
support_lib_path.push(format!("{}-tools-bin", stage));
3767+
support_lib_path.push("librun_make_support.rlib");
37683768

37693769
let mut stage_std_path = PathBuf::new();
37703770
stage_std_path.push(&build_root);
@@ -3774,34 +3774,34 @@ impl<'test> TestCx<'test> {
37743774
// Then, we need to build the recipe `rmake.rs` and link in the support library.
37753775
let recipe_bin = tmpdir.join("rmake");
37763776

3777-
let mut support_dylib_deps = PathBuf::new();
3778-
support_dylib_deps.push(&build_root);
3779-
support_dylib_deps.push(format!("{}-tools", stage));
3780-
support_dylib_deps.push(&self.config.host);
3781-
support_dylib_deps.push("release");
3782-
support_dylib_deps.push("deps");
3777+
let mut support_lib_deps = PathBuf::new();
3778+
support_lib_deps.push(&build_root);
3779+
support_lib_deps.push(format!("{}-tools", stage));
3780+
support_lib_deps.push(&self.config.host);
3781+
support_lib_deps.push("release");
3782+
support_lib_deps.push("deps");
37833783

3784-
let mut support_dylib_deps_deps = PathBuf::new();
3785-
support_dylib_deps_deps.push(&build_root);
3786-
support_dylib_deps_deps.push(format!("{}-tools", stage));
3787-
support_dylib_deps_deps.push("release");
3788-
support_dylib_deps_deps.push("deps");
3784+
let mut support_lib_deps_deps = PathBuf::new();
3785+
support_lib_deps_deps.push(&build_root);
3786+
support_lib_deps_deps.push(format!("{}-tools", stage));
3787+
support_lib_deps_deps.push("release");
3788+
support_lib_deps_deps.push("deps");
37893789

3790-
debug!(?support_dylib_deps);
3791-
debug!(?support_dylib_deps_deps);
3790+
debug!(?support_lib_deps);
3791+
debug!(?support_lib_deps_deps);
37923792

37933793
let res = self.cmd2procres(
37943794
Command::new(&self.config.rustc_path)
37953795
.arg("-o")
37963796
.arg(&recipe_bin)
37973797
.arg(format!(
37983798
"-Ldependency={}",
3799-
&support_dylib_path.parent().unwrap().to_string_lossy()
3799+
&support_lib_path.parent().unwrap().to_string_lossy()
38003800
))
3801-
.arg(format!("-Ldependency={}", &support_dylib_deps.to_string_lossy()))
3802-
.arg(format!("-Ldependency={}", &support_dylib_deps_deps.to_string_lossy()))
3801+
.arg(format!("-Ldependency={}", &support_lib_deps.to_string_lossy()))
3802+
.arg(format!("-Ldependency={}", &support_lib_deps_deps.to_string_lossy()))
38033803
.arg("--extern")
3804-
.arg(format!("run_make_support={}", &support_dylib_path.to_string_lossy()))
3804+
.arg(format!("run_make_support={}", &support_lib_path.to_string_lossy()))
38053805
.arg(&self.testpaths.file.join("rmake.rs"))
38063806
.env("TARGET", &self.config.target)
38073807
.env("PYTHON", &self.config.python)
@@ -3830,7 +3830,7 @@ impl<'test> TestCx<'test> {
38303830
let mut dylib_env_paths = String::new();
38313831
dylib_env_paths.push_str(&env::var(dylib_env_var()).unwrap());
38323832
dylib_env_paths.push(':');
3833-
dylib_env_paths.push_str(&support_dylib_path.parent().unwrap().to_string_lossy());
3833+
dylib_env_paths.push_str(&support_lib_path.parent().unwrap().to_string_lossy());
38343834
dylib_env_paths.push(':');
38353835
dylib_env_paths.push_str(
38363836
&stage_std_path.join("rustlib").join(&self.config.host).join("lib").to_string_lossy(),

0 commit comments

Comments
 (0)