Skip to content

Commit

Permalink
build.rs: Avoid reading CARGO_MANIFEST_DIR redundantly.
Browse files Browse the repository at this point in the history
  • Loading branch information
briansmith committed Mar 1, 2024
1 parent 1f3506a commit 9063271
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ fn ring_build_rs_main(c_root_dir: &Path) {
// we want to optimize for minimizing the build tools required: No Perl,
// no nasm, etc.
let generated_dir = if !is_git {
PathBuf::from(env::var_os("CARGO_MANIFEST_DIR").unwrap()).join(PREGENERATED)
c_root_dir.join(PREGENERATED)
} else {
generate_sources_and_preassemble(&out_dir, asm_target.into_iter(), c_root_dir);
out_dir.clone()
Expand Down

0 comments on commit 9063271

Please sign in to comment.