Use all compiler flags from the makefile when building (#64)

Signed-off-by: Victor Porof <victor.porof@gmail.com>
without.crypto
Victor Porof 5 years ago committed by GitHub
parent 0810db76b3
commit 8fc50a8f74
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      lmdb-sys/build.rs

@ -43,7 +43,10 @@ fn main() {
.define("MDB_IDL_LOGN", Some(MDB_IDL_LOGN.to_string().as_str())) .define("MDB_IDL_LOGN", Some(MDB_IDL_LOGN.to_string().as_str()))
.file(lmdb.join("mdb.c")) .file(lmdb.join("mdb.c"))
.file(lmdb.join("midl.c")) .file(lmdb.join("midl.c"))
// https://github.com/mozilla/lmdb/blob/b7df2cac50fb41e8bd16aab4cc5fd167be9e032a/libraries/liblmdb/Makefile#L23
.flag_if_supported("-Wno-unused-parameter") .flag_if_supported("-Wno-unused-parameter")
.flag_if_supported("-Wbad-function-cast")
.flag_if_supported("-Wuninitialized")
.compile("liblmdb.a") .compile("liblmdb.a")
} }
} }

Loading…
Cancel
Save