Skip to content

Commit

Permalink
Use runtime env for fbcg_rust flatbuffer dir
Browse files Browse the repository at this point in the history
  • Loading branch information
emesare committed Oct 23, 2024
1 parent f7a6f65 commit 14bd9dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fbcg_rust/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ pub fn main() {

// Remove leftover symlink dir.
let _ = std::fs::remove_dir_all("src/gen_flatbuffers");
let workspace_dir: PathBuf = env!("CARGO_WORKSPACE_DIR").into();
let workspace_dir: PathBuf = std::env::var("CARGO_WORKSPACE_DIR").unwrap().into();
BuilderOptions::new_with_files([
workspace_dir.join("type.fbs"),
workspace_dir.join("symbol.fbs"),
Expand Down

0 comments on commit 14bd9dd

Please sign in to comment.