Skip to content

Commit

Permalink
Fixes issue DaGenix#445 : I can't compile
Browse files Browse the repository at this point in the history
Fixes the build problem which arises when the
* host is windows
* target is x86_64-pc-windows-gnu
The problem is fixed by setting the compiler to gcc.
  • Loading branch information
Cem Eliguzel committed Sep 3, 2019
1 parent cc1a5fd commit b68e21c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,8 @@ fn main() {
// GCC doesn't like some of the assembly that we use on that
// platform.
cfg.compiler(Path::new("clang"));
} else if target.contains("gnu") {
cfg.compiler(Path::new("gcc"));
} else if target == host {
cfg.compiler(Path::new("cc"));
}
Expand Down

0 comments on commit b68e21c

Please sign in to comment.