Skip to content

Commit

Permalink
Debug version-finding
Browse files Browse the repository at this point in the history
  • Loading branch information
henrikhorluck committed Aug 18, 2023
1 parent 421ad21 commit e3e3cdf
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion fish-rust/build.rs
Expand Up @@ -4,7 +4,14 @@ use std::error::Error;
use std::path::PathBuf;

fn main() {
let version = find_version().unwrap_or("unknown".into());
let version = match find_version() {
Ok(v) => Ok(v),
Err(e) => {
println!("cargo:warning=Failed to find a version, erorred with {}", e);
Err(e)
}
}
.unwrap_or("unknown".into());
println!("cargo:rustc-env=FISH_BUILD_VERSION={version}");

for key in ["DOCDIR", "DATADIR", "SYSCONFDIR", "BINDIR"] {
Expand Down

0 comments on commit e3e3cdf

Please sign in to comment.