You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
(* -*- 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 core IStdlib ATDGenerated IBase IR Absint Checkers TestDeterminators)
|
|
|
|
(preprocess (pps ppx_compare))
|
|
|
|
)|}
|
|
|
|
(if clang then ":standard \\ ClangFrontendStubs" else "ClangFrontendStubs")
|
|
|
|
|
|
|
|
|
|
|
|
;;
|
|
|
|
Jbuild_plugin.V1.send clang
|