Skip to content

Commit

Permalink
Only write arm-features.h when the file isn't exist
Browse files Browse the repository at this point in the history
It's included in zig now, see ziglang/zig#12346
  • Loading branch information
messense committed Jul 8, 2024
1 parent 2f3874b commit fa7908f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/zig.rs
Original file line number Diff line number Diff line change
Expand Up @@ -825,8 +825,7 @@ impl Zig {
.join("sysdeps")
.join("arm")
.join("arm-features.h");
let existing_content = fs::read_to_string(&arm_features_h).unwrap_or_default();
if existing_content != ARM_FEATURES_H {
if !arm_features_h.is_file() {
fs::write(arm_features_h, ARM_FEATURES_H)?;
}
}
Expand Down

0 comments on commit fa7908f

Please sign in to comment.