diff --git a/infer/src/deadcode/Makefile b/infer/src/deadcode/Makefile index 44bf8f114..7fae5fdac 100644 --- a/infer/src/deadcode/Makefile +++ b/infer/src/deadcode/Makefile @@ -50,8 +50,8 @@ endif # Note that we run find under _build directory. Since we copy some # sources from subfolders to src/ folder to avoid duplicates we use # $(DEPTH_ONE) and iteration over main and library folders. -LIBRARY_FOLDERS = . ./IR ./absint ./atd ./base ./biabduction ./bufferoverrun ./c_stubs ./istd ./nullsafe ./scripts -INCLUDE_FOLDERS = -I absint -I IR -I atd -I base -I biabduction -I bufferoverrun -I c_stubs -I istd -I nullsafe -I scripts +LIBRARY_FOLDERS = . ./IR ./absint ./atd ./base ./biabduction ./bufferoverrun ./c_stubs ./istd ./nullsafe ./pulse ./scripts +INCLUDE_FOLDERS = -I absint -I IR -I atd -I base -I biabduction -I bufferoverrun -I c_stubs -I istd -I nullsafe -I pulse -I scripts ml_src_files:=$(shell \ cd $(INFER_BUILD_DIR); \ diff --git a/infer/src/deadcode/dune.in b/infer/src/deadcode/dune.in index b58ee2c87..8f9a1161d 100644 --- a/infer/src/deadcode/dune.in +++ b/infer/src/deadcode/dune.in @@ -14,7 +14,7 @@ Format.sprintf (name all_infer_in_one_file) (modes byte) (flags (:standard -w +60)) - (libraries %s) + (libraries %s sledge) (modules All_infer_in_one_file) (preprocess (pps ppx_compare ppx_enumerate ppx_fields_conv ppx_hash ppx_sexp_conv ppx_variants_conv -no-check)) ) diff --git a/infer/src/dune.common.in b/infer/src/dune.common.in index 3d1bbaf9a..2e87e30e1 100644 --- a/infer/src/dune.common.in +++ b/infer/src/dune.common.in @@ -62,7 +62,6 @@ let common_libraries = ; "oUnit" ; "parmap" ; "re" - ; "sledge" ; "sqlite3" ; "str" ; "unix" diff --git a/infer/src/dune.in b/infer/src/dune.in index dab9a0bab..d2eea04c0 100644 --- a/infer/src/dune.in +++ b/infer/src/dune.in @@ -18,7 +18,6 @@ let source_dirs = ; "cost" ; "integration" ; "labs" - ; "pulse" ; "quandary" ; "test_determinator" ; "topl" @@ -59,6 +58,8 @@ let infer_cflags = ; "-open" ; "Nullsafe" ; "-open" + ; "Pulselib" + ; "-open" ; "Absint" ; "-open" ; "OpenSource" @@ -91,7 +92,8 @@ let main_lib_stanza = |} infer_cflags (String.concat " " - (common_libraries @ ["InferIR"; "InferCStubs"; "absint"; "biabduction"; "nullsafe"; "bo"])) + ( common_libraries + @ ["InferIR"; "InferCStubs"; "absint"; "biabduction"; "nullsafe"; "bo"; "pulselib"] )) (String.concat " " infer_binaries) diff --git a/infer/src/pulse/dune b/infer/src/pulse/dune new file mode 100644 index 000000000..63830d9a9 --- /dev/null +++ b/infer/src/pulse/dune @@ -0,0 +1,14 @@ +; 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. + +(library + (name pulselib) + (public_name infer.pulselib) + (flags + (:standard -open Core -open InferIR -open InferStdlib -open IStd -open InferGenerated + -open InferBase -open Absint -open Bo)) + (libraries core sledge InferStdlib InferGenerated InferBase InferIR absint bo) + (preprocess (pps ppx_compare ppx_variants_conv)) +)