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
# 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); \

@ -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))
)

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

@ -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)

@ -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