From 0841bb051280a5e73419ae964f54258709dead7d Mon Sep 17 00:00:00 2001 From: Thom Chiovoloni Date: Fri, 2 Jun 2023 11:58:29 -0700 Subject: [PATCH] Fix version check --- pgrx-pg-sys/build.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pgrx-pg-sys/build.rs b/pgrx-pg-sys/build.rs index 0a1893365..80bd4fd36 100644 --- a/pgrx-pg-sys/build.rs +++ b/pgrx-pg-sys/build.rs @@ -31,7 +31,7 @@ fn is_nightly() -> bool { return false; } let rustc = env_tracked("RUSTC").map(PathBuf::from).unwrap_or_else(|| "rustc".into()); - let output = match std::process::Command::new(rustc).arg("--verbose").output() { + let output = match std::process::Command::new(rustc).arg("--version").output() { Ok(out) if out.status.success() => String::from_utf8_lossy(&out.stdout).trim().to_owned(), _ => return false, };