Remove compiletest workaround for the old cargo resolver (#1131)

This commit is contained in:
Fredrik Fornwall 2024-02-07 22:45:38 +01:00 committed by GitHub
parent 3689d11a3c
commit 8678d58d61
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -177,11 +177,6 @@ impl Runner {
/// Runs the processes needed to build `spirv-std` & other deps.
fn build_deps(deps_target_dir: &Path, codegen_backend_path: &Path, target: &str) -> TestDeps {
// HACK(eddyb) this is only needed until we enable `resolver = "2"`, as the
// old ("1") resolver has a bug where it picks up extra features based on the
// current directory (and so we always set the working dir as a workaround).
let old_cargo_resolver_workaround_cwd = deps_target_dir.parent().unwrap();
// Build compiletests-deps-helper
std::process::Command::new("cargo")
.args([
@ -195,7 +190,6 @@ fn build_deps(deps_target_dir: &Path, codegen_backend_path: &Path, target: &str)
.arg("--target-dir")
.arg(deps_target_dir)
.env("RUSTFLAGS", rust_flags(codegen_backend_path))
.current_dir(old_cargo_resolver_workaround_cwd)
.stderr(std::process::Stdio::inherit())
.stdout(std::process::Stdio::inherit())
.status()