Skip to content

Commit

Permalink
Try fix tb_client.h assertion on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
tyranron committed Nov 19, 2024
1 parent 37cc03b commit 86faaf6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sys/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,9 @@ fn main() {
wrapper = c_dir.join("wrapper.h");
let generated_header = c_dir.join("tb_client.h");
assert_eq!(
fs::read_to_string(&generated_header).expect("reading generated `tb_client.h`"),
fs::read_to_string(&generated_header)
.expect("reading generated `tb_client.h`")
.replace("\r\n", "\n"),
fs::read_to_string("src/tb_client.h").expect("reading pre-generated `tb_client.h`"),
"generated and pre-generated `tb_client.h` headers must be equal, \
generated at: {generated_header:?}",
Expand Down

0 comments on commit 86faaf6

Please sign in to comment.