Vendors/lmdb: add CFLAGS
This commit is contained in:
parent
ccc61dbbc4
commit
4a436c2f18
6
vendors/ocaml-lmdb/config/discover.ml
vendored
6
vendors/ocaml-lmdb/config/discover.ml
vendored
@ -1,4 +1,8 @@
|
|||||||
let () =
|
let () =
|
||||||
let oc = open_out "c_flags.sexp" in
|
let oc = open_out "c_flags.sexp" in
|
||||||
output_string oc (if Sys.word_size = 32 then "(-DMDB_VL32)" else "()") ;
|
let w = "-W -Wall -Wno-unused-parameter -Wbad-function-cast -Wuninitialized" in
|
||||||
|
let thread = "-pthread" in
|
||||||
|
let opt = "-O2 -g" in
|
||||||
|
Printf.fprintf oc "(%s %s %s %s)" w thread opt
|
||||||
|
(if Sys.word_size = 32 then "-DMDB_VL32" else "") ;
|
||||||
close_out oc
|
close_out oc
|
||||||
|
Loading…
Reference in New Issue
Block a user