Skip to content

Commit

Permalink
uplink-sys(fix): Make build copying more resilient
Browse files Browse the repository at this point in the history
This fixes an issue where:

  1. User tries to build before initializing all submodules.
  2. `uplink-c` directory is empty and copied into build.
  3. Build fails but leaves empty `uplink-c` directory in build directory
  4. User initializes `uplink-c` and then tries to build again without cleaning.
  5. `uplink-c` gets nested in a second level deeper, causing build issues.
  • Loading branch information
GodTamIt authored and ifraixedes committed Nov 12, 2024
1 parent 497c270 commit c80f29d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion uplink-sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fn main() {
// Copy project to OUT_DIR for building
Command::new("cp")
.args([
"-R",
"-Rf",
&uplink_c_src.to_string_lossy(),
&uplink_c_dir.to_string_lossy(),
])
Expand Down

0 comments on commit c80f29d

Please sign in to comment.