Skip to content

Commit

Permalink
update build.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
TheLortex committed Mar 29, 2024
1 parent 7be8953 commit fb38e64
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 @@ -21,7 +21,7 @@ BACKTRACE_RS_ANDROID_APIVERSION __ANDROID_API__
fn build_android() {
// Create `android-api.c` on demand.
// Required to support calling this from the `std` build script.
let out_dir = env::var_os("OUT_DIR").unwrap();
let out_dir = std::fs::canonicalize(env::var_os("OUT_DIR").unwrap()).unwrap();
let android_api_c = Path::new(&out_dir).join("android-api.c");
std::fs::write(&android_api_c, ANDROID_API_C).unwrap();

Expand Down

0 comments on commit fb38e64

Please sign in to comment.