如何在绿洲中添加额外的警告



我有一个包含多个库的 oasis 文件 – 如何为每个库启用-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

_oasis的顶层,添加

AlphaFeatures: ocamlbuild_more_args
XOCamlbuildExtraArgs: "-cflags 'flags'"

-cflags 'flags' 将被传递给 ocamlbuild ,然后 flags 传递给 ocamlc 。在这种情况下,标志-w +9+27+32 -warn-error +a

相关内容

  • 没有找到相关文章

最新更新