Use the same flags in lib's build.rs as in Makefile
This commit is contained in:
parent
113d100250
commit
f9e8802234
2 changed files with 8 additions and 6 deletions
|
|
@ -26,7 +26,9 @@ fn main() {
|
|||
|
||||
cc::Build::new()
|
||||
.flag_if_supported("-std=c99")
|
||||
.flag_if_supported("-Wno-unused-parameter")
|
||||
.flag_if_supported("-fvisibility=hidden")
|
||||
.flag_if_supported("-Wshadow")
|
||||
.flag_if_supported("-Werror")
|
||||
.include(src_path)
|
||||
.include("include")
|
||||
.file(src_path.join("lib.c"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue