Skip to content

Commit

Permalink
Merge pull request #35 from VZout/patch-1
Browse files Browse the repository at this point in the history
Android support for build.rs
  • Loading branch information
gwihlidal authored Jun 4, 2020
2 parents f93c12d + 95f4a31 commit 51b7cec
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,16 @@ fn main() {
.cpp_link_stdlib("c++")
.cpp_set_stdlib("c++")
.cpp(true);
} else if target.contains("android") {
build
.flag("-std=c++11")
.flag("-Wno-missing-field-initializers")
.flag("-Wno-unused-variable")
.flag("-Wno-unused-parameter")
.flag("-Wno-unused-private-field")
.flag("-Wno-reorder")
.cpp_link_stdlib("c++")
.cpp(true);
} else if target.contains("linux") {
build
.flag("-std=c++11")
Expand Down

0 comments on commit 51b7cec

Please sign in to comment.