Skip to content

Commit

Permalink
fix crash in build.rs when installing from source on linux (#1760)
Browse files Browse the repository at this point in the history
  • Loading branch information
savente93 authored and Keats committed Feb 14, 2022
1 parent a13279e commit fd05225
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build.rs
Expand Up @@ -14,7 +14,7 @@ fn generate_pe_header() {
}
res.set_icon("docs/static/favicon.ico");
res.set("LegalCopyright", &copyright);
res.compile().expect("Failed to compile Windows resources!");
res.compile().expect("Failed to compile Windows resources!");
}

fn main() {
Expand All @@ -29,5 +29,7 @@ fn main() {
{
return;
}
generate_pe_header();
if cfg!(windows){
generate_pe_header();
}
}

0 comments on commit fd05225

Please sign in to comment.