about summary refs log tree commit diff
path: root/clippy_dev
diff options
context:
space:
mode:
authorCameron Steffen <cam.steffen94@gmail.com>2021-09-08 10:58:18 -0500
committerCameron Steffen <cam.steffen94@gmail.com>2021-09-08 14:07:03 -0500
commitecaf7acd4f9074e255cafaac9aa4b1c601dc311a (patch)
tree8f687c124fe166a44101acc38ee11d9ffee0f99c /clippy_dev
parente3b171dcf099fbb7e7d3bd2cb28b11f7d3fb2773 (diff)
downloadrust-ecaf7acd4f9074e255cafaac9aa4b1c601dc311a.tar.gz
rust-ecaf7acd4f9074e255cafaac9aa4b1c601dc311a.zip
Use relative path for test builds
Diffstat (limited to 'clippy_dev')
-rw-r--r--clippy_dev/src/bless.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/clippy_dev/src/bless.rs b/clippy_dev/src/bless.rs
index 19153aa74d0..3d97fa8a892 100644
--- a/clippy_dev/src/bless.rs
+++ b/clippy_dev/src/bless.rs
@@ -85,10 +85,7 @@ fn updated_since_clippy_build(path: &Path) -> Option<bool> {
 }
 
 fn build_dir() -> PathBuf {
-    let profile = env::var("PROFILE").unwrap_or_else(|_| "debug".to_string());
-    let mut path = PathBuf::new();
-    path.push(CARGO_TARGET_DIR.clone());
-    path.push(profile);
-    path.push("test_build_base");
+    let mut path = std::env::current_exe().unwrap();
+    path.set_file_name("test_build_base");
     path
 }