|
|
|
(* -*- tuareg -*- *)
|
|
|
|
(*
|
|
|
|
* Copyright (c) Facebook, Inc. and its affiliates.
|
|
|
|
*
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
*)
|
|
|
|
(* NOTE: prepend dune.common to this file! *)
|
|
|
|
|
|
|
|
let clang =
|
|
|
|
Printf.sprintf
|
|
|
|
{|(library
|
|
|
|
(name ClangFrontend)
|
|
|
|
(public_name infer.ClangFrontend)
|
|
|
|
(modules %s)
|
|
|
|
(flags
|
|
|
|
(:standard
|
|
|
|
-open Core -open IStdlib -open IStd -open OpenSource -open ATDGenerated
|
|
|
|
-open IBase -open IR -open Absint -open Checkers -open TestDeterminators))
|
|
|
|
(libraries oUnit core IStdlib ATDGenerated IBase IR Absint Checkers TestDeterminators)
|
|
|
|
(preprocess (pps ppx_compare))
|
|
|
|
)|}
|
|
|
|
(if clang then ":standard \\ ClangFrontendStubs" else "ClangFrontendStubs")
|
|
|
|
|
|
|
|
|
|
|
|
let documentation = "(documentation (package infer) (mld_files ClangFrontend))"
|
|
|
|
|
|
|
|
;;
|
|
|
|
Jbuild_plugin.V1.send (String.concat "\n" [clang; documentation])
|