Skip to content

Commit

Permalink
chore(boring-sys): Fix git apply patch on Windows (#261)
Browse files Browse the repository at this point in the history
* chore(boring-sys): Fix git apply patch on Windows

* cargo fmt --all
  • Loading branch information
0x676e67 authored Aug 14, 2024
1 parent 72b343d commit 9053b5d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions boring-sys/build/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -501,12 +501,16 @@ fn ensure_patches_applied(config: &Config) -> io::Result<()> {

fn apply_patch(config: &Config, patch_name: &str) -> io::Result<()> {
let src_path = get_boringssl_source_path(config);
#[cfg(not(windows))]
let cmd_path = config
.manifest_dir
.join("patches")
.join(patch_name)
.canonicalize()?;

#[cfg(windows)]
let cmd_path = config.manifest_dir.join("patches").join(patch_name);

let mut args = vec!["apply", "-v", "--whitespace=fix"];

// non-bazel versions of BoringSSL have no src/ dir
Expand Down

0 comments on commit 9053b5d

Please sign in to comment.