Skip to content

Commit 36726be

Browse files
authored
fix crash in build.rs when installing from source on linux (#1760)
1 parent 1a0497f commit 36726be

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Diff for: build.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ fn generate_pe_header() {
1414
}
1515
res.set_icon("docs/static/favicon.ico");
1616
res.set("LegalCopyright", &copyright);
17-
res.compile().expect("Failed to compile Windows resources!");
17+
res.compile().expect("Failed to compile Windows resources!");
1818
}
1919

2020
fn main() {
@@ -29,5 +29,7 @@ fn main() {
2929
{
3030
return;
3131
}
32-
generate_pe_header();
32+
if cfg!(windows){
33+
generate_pe_header();
34+
}
3335
}

0 commit comments

Comments
 (0)