Summary: There's actually a nice separation between IR/, base/, istd/, and the rest of infer, so they can be made into separate jbuilder libraries so that the separation remains. This helps make sense of the infer codebase. Also: - move everything biabduction-related out of backend/ and into a new biabduction/ directory. This clarifies the current situation where backend/ contains a mix of analysis-independent code (still there now), and biabduction-specific code (moved to biabduction/). - move everything from base/ that is not infer-specific into istd/, e.g. IList.ml - kill unused `FbTraceCalls` - A couple of files needed to move around to complete the separation of base/ and IR/ Reviewed By: mbouaziz Differential Revision: D7381842 fbshipit-source-id: cd86deamaster
parent
a2d3a0ec73
commit
6f187a954c
@ -0,0 +1,16 @@
|
||||
(* -*- tuareg -*- *)
|
||||
(* NOTE: prepend jbuild.common to this file! *)
|
||||
;; Format.sprintf
|
||||
{|
|
||||
(library
|
||||
((name InferIR)
|
||||
(flags (%s -open Core -open InferStdlib -open IStd -open InferGenerated -open InferBase))
|
||||
(ocamlopt_flags (%s))
|
||||
(libraries (%s))
|
||||
(preprocess (pps (ppx_compare)))
|
||||
))
|
||||
|}
|
||||
(String.concat " " common_cflags)
|
||||
(String.concat " " common_optflags)
|
||||
(String.concat " " ("InferBase" :: common_libraries))
|
||||
|> Jbuild_plugin.V1.send
|
@ -0,0 +1,2 @@
|
||||
Utility modules that are somewhat specific to infer, usually because
|
||||
they depend on Config.ml.
|
@ -0,0 +1,16 @@
|
||||
(* -*- tuareg -*- *)
|
||||
(* NOTE: prepend jbuild.common to this file! *)
|
||||
;; Format.sprintf
|
||||
{|
|
||||
(library
|
||||
((name InferBase)
|
||||
(flags (%s -open Core -open InferStdlib -open IStd -open InferGenerated))
|
||||
(ocamlopt_flags (%s))
|
||||
(libraries (%s))
|
||||
(preprocess (pps (ppx_compare)))
|
||||
))
|
||||
|}
|
||||
(String.concat " " common_cflags)
|
||||
(String.concat " " common_optflags)
|
||||
(String.concat " " ("InferStdlib" :: "InferGenerated" :: common_libraries))
|
||||
|> Jbuild_plugin.V1.send
|
@ -1,20 +0,0 @@
|
||||
B _build/default/istd/.InferStdlib.objs
|
||||
PKG ANSITerminal
|
||||
PKG atdgen
|
||||
PKG cmdliner
|
||||
PKG core
|
||||
PKG javalib
|
||||
PKG oUnit
|
||||
PKG parmap
|
||||
PKG ppx_compare
|
||||
PKG ptrees
|
||||
PKG sawja
|
||||
PKG str
|
||||
PKG unix
|
||||
PKG xmlm
|
||||
PKG yojson
|
||||
PKG zip
|
||||
FLG -principal -safe-string -short-paths -strict-formats -strict-sequence
|
||||
FLG -w +a-4-9-40-41-42-44-45-48-60
|
||||
FLG -open Core
|
||||
S .
|
@ -0,0 +1,2 @@
|
||||
Utility modules not specific to infer. In particular, nothing here
|
||||
should depend on Config.ml.
|
Loading…
Reference in new issue