Skip to content

Commit 48da072

Browse files
authored
chore: clarify ninja dep error message (#4724)
Signed-off-by: Alexander Droste <[email protected]>
1 parent 10b7814 commit 48da072

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

vortex-duckdb/build.rs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,14 @@ fn http_client() -> Result<reqwest::blocking::Client, Box<dyn std::error::Error>
150150
}
151151

152152
fn build_duckdb(duckdb_source_root: &Path) -> Result<PathBuf, Box<dyn std::error::Error>> {
153+
if std::process::Command::new("ninja")
154+
.arg("--version")
155+
.output()
156+
.is_err()
157+
{
158+
return Err("'ninja' is required to build DuckDB.".into());
159+
}
160+
153161
let duckdb_repo_dir = duckdb_source_root.join(format!("duckdb-{}", DUCKDB_VERSION.as_str()));
154162
let build_dir = duckdb_repo_dir.join("build").join("debug");
155163

0 commit comments

Comments
 (0)