Summary:
An easy one. One subtlety: I needed to name the library "pulselib"
instead of "pulse" because dune got confused by the Pulse.ml module.

Reviewed By: skcho

Differential Revision: D21401815

fbshipit-source-id: 05e75b1fa
master
Jules Villard 5 years ago committed by Facebook GitHub Bot
parent a34e1a8759
commit 7e5dba718a

@ -50,8 +50,8 @@ endif
# Note that we run find under _build directory. Since we copy some # Note that we run find under _build directory. Since we copy some
# sources from subfolders to src/ folder to avoid duplicates we use # sources from subfolders to src/ folder to avoid duplicates we use
# $(DEPTH_ONE) and iteration over main and library folders. # $(DEPTH_ONE) and iteration over main and library folders.
LIBRARY_FOLDERS = . ./IR ./absint ./atd ./base ./biabduction ./bufferoverrun ./c_stubs ./istd ./nullsafe ./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 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 \ ml_src_files:=$(shell \
cd $(INFER_BUILD_DIR); \ cd $(INFER_BUILD_DIR); \

@ -14,7 +14,7 @@ Format.sprintf
(name all_infer_in_one_file) (name all_infer_in_one_file)
(modes byte) (modes byte)
(flags (:standard -w +60)) (flags (:standard -w +60))
(libraries %s) (libraries %s sledge)
(modules All_infer_in_one_file) (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)) (preprocess (pps ppx_compare ppx_enumerate ppx_fields_conv ppx_hash ppx_sexp_conv ppx_variants_conv -no-check))
) )

@ -62,7 +62,6 @@ let common_libraries =
; "oUnit" ; "oUnit"
; "parmap" ; "parmap"
; "re" ; "re"
; "sledge"
; "sqlite3" ; "sqlite3"
; "str" ; "str"
; "unix" ; "unix"

@ -18,7 +18,6 @@ let source_dirs =
; "cost" ; "cost"
; "integration" ; "integration"
; "labs" ; "labs"
; "pulse"
; "quandary" ; "quandary"
; "test_determinator" ; "test_determinator"
; "topl" ; "topl"
@ -59,6 +58,8 @@ let infer_cflags =
; "-open" ; "-open"
; "Nullsafe" ; "Nullsafe"
; "-open" ; "-open"
; "Pulselib"
; "-open"
; "Absint" ; "Absint"
; "-open" ; "-open"
; "OpenSource" ; "OpenSource"
@ -91,7 +92,8 @@ let main_lib_stanza =
|} |}
infer_cflags infer_cflags
(String.concat " " (String.concat " "
(common_libraries @ ["InferIR"; "InferCStubs"; "absint"; "biabduction"; "nullsafe"; "bo"])) ( common_libraries
@ ["InferIR"; "InferCStubs"; "absint"; "biabduction"; "nullsafe"; "bo"; "pulselib"] ))
(String.concat " " infer_binaries) (String.concat " " infer_binaries)

@ -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))
)
Loading…
Cancel
Save