我有这样几个库绿洲文件-我如何能够支持-w ..
并-warn-error +a
为他们每个人?
出于参考目的,给定的oasis文件如下所示:
OASISFormat: 0.4 Name: re Version: 1.5.0 Synopsis: Pure OCaml regular expression library Authors: Jerome Vouillon, Thomas Gazagnaire, Anil Madhavapeddy License: LGPL-2.0 with OCaml linking exception Plugins: META (0.4), DevFiles (0.4) AlphaFeatures: compiled_setup_ml BuildTools: ocamlbuild Library re Path: lib InternalModules: Re_cset, Re_automata Modules: Re Findlibname: re BuildDepends: bytes Library re_emacs Path: lib XMETADescription: Emacs-compatible regexps Modules: Re_emacs Findlibname: emacs FindlibParent: re BuildDepends: re
bfops.. 5
在顶层_oasis
,添加
AlphaFeatures: ocamlbuild_more_args XOCamlbuildExtraArgs: "-cflags 'flags'"
-cflags 'flags'
将传递给ocamlbuild
,然后传递flags
给ocamlc
.在这种情况下,标志是-w +9+27+32 -warn-error +a
在顶层_oasis
,添加
AlphaFeatures: ocamlbuild_more_args XOCamlbuildExtraArgs: "-cflags 'flags'"
-cflags 'flags'
将传递给ocamlbuild
,然后传递flags
给ocamlc
.在这种情况下,标志是-w +9+27+32 -warn-error +a