Skip to content

Commit

Permalink
Add more descriptive build error message
Browse files Browse the repository at this point in the history
  • Loading branch information
matzipan committed Nov 12, 2023
1 parent 287d180 commit e938b6b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion app/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,10 @@ use std::env;
use std::path::PathBuf;

fn main() {
let clang_lib_path = env::var("CLANG_LIB_PATH").unwrap();
let clang_lib_path = env::var("CLANG_LIB_PATH").expect(
"CLANG_LIB_PATH is not set.\
Make sure you are building from the flatpak environment",
);
let out_path = env::var("OUT_DIR").unwrap();
let crate_dir = env::var("CARGO_MANIFEST_DIR").unwrap();

Expand Down

0 comments on commit e938b6b

Please sign in to comment.