diff options
Diffstat (limited to 'xtask')
-rw-r--r-- | xtask/src/main.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/xtask/src/main.rs b/xtask/src/main.rs index 576ba003a..84842b428 100644 --- a/xtask/src/main.rs +++ b/xtask/src/main.rs | |||
@@ -227,7 +227,8 @@ fn install_client(ClientOpt::VsCode: ClientOpt) -> Result<()> { | |||
227 | } | 227 | } |
228 | 228 | ||
229 | fn install_server(opts: ServerOpt) -> Result<()> { | 229 | fn install_server(opts: ServerOpt) -> Result<()> { |
230 | let ac = autocfg::AutoCfg::with_dir("target")?; | 230 | let target_dir = env::var_os("CARGO_TARGET_DIR").unwrap_or_else(|| "target".into()); |
231 | let ac = autocfg::AutoCfg::with_dir(target_dir)?; | ||
231 | 232 | ||
232 | let old_rust = !ac.probe_rustc_version(REQUIRED_RUST_VERSION.0, REQUIRED_RUST_VERSION.1); | 233 | let old_rust = !ac.probe_rustc_version(REQUIRED_RUST_VERSION.0, REQUIRED_RUST_VERSION.1); |
233 | 234 | ||