Skip to content

Commit

Permalink
Remove Wno flags on Windows build
Browse files Browse the repository at this point in the history
  • Loading branch information
cpmech committed Oct 10, 2023
1 parent 4020e3f commit f59daff
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#[cfg(any(target_os = "linux", target_os = "macos"))]
fn main() {
cc::Build::new()
.file("c_code/triangle.c")
Expand All @@ -17,3 +18,18 @@ fn main() {
.flag("-Wno-unused-but-set-variable")
.compile("c_code_interface_tetgen");
}

#[cfg(target_os = "windows")]
fn main() {
cc::Build::new()
.file("c_code/triangle.c")
.file("c_code/tricall_report.c")
.file("c_code/interface_triangle.c")
.compile("c_code_interface_triangle");
cc::Build::new()
.cpp(true)
.file("c_code/predicates.cxx")
.file("c_code/tetgen.cxx")
.file("c_code/interface_tetgen.cpp")
.compile("c_code_interface_tetgen");
}

0 comments on commit f59daff

Please sign in to comment.