Skip to content

Commit 6c87ef0

Browse files
dvdplmFirestar99
authored andcommitted
make build.rs handle macOS non-utf8 metadata files
1 parent 3292664 commit 6c87ef0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

crates/rustc_codegen_spirv/build.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,10 @@ fn generate_pqp_cg_ssa() -> Result<(), Box<dyn Error>> {
135135
}
136136

137137
let in_path = entry.path();
138+
139+
if in_path.ends_with(".DS_Store") {
140+
continue;
141+
}
138142
let out_path = out_dir.join(entry.file_name());
139143

140144
let mut src = fs::read_to_string(in_path)?;

0 commit comments

Comments
 (0)