@ -181,12 +181,28 @@ test_build: src_build_common
$( QUIET) $( call silent_on_success,Testing Infer builds without warnings,\
$( MAKE_SOURCE) test )
# de pend on test_build so that we do not run them in parallel
.PHONY : deadcode
deadcode: src_build_common test_build
# de adcode analysis: only do the deadcode detection on Facebook builds and if GNU sed is available
.PHONY : real_ deadcode
real_ deadcode: src_build_common
$( QUIET) $( call silent_on_success,Testing there is no dead OCaml code,\
$( MAKE) -C $( SRC_DIR) /deadcode)
.PHONY : deadcode
deadcode :
i f e q ( $( IS_FACEBOOK_TREE ) , n o )
$( QUIET) echo "Deadcode detection only works in Facebook builds, skipping"
e n d i f
i f e q ( $( GNU_SED ) , n o )
$( QUIET) echo "Deadcode detection only works with GNU sed installed, skipping"
e n d i f
i f e q ( $( IS_FACEBOOK_TREE ) , y e s )
i f n e q ( $( GNU_SED ) , n o )
deadcode : real_deadcode
e n d i f
e n d i f
.PHONY : toplevel
toplevel : src_build_common
$( QUIET) $( call silent_on_success,Building Infer REPL,\
@ -398,11 +414,6 @@ test: crash_if_not_all_analyzers_enabled config_tests
i f e q ( , $( findstring s ,$ ( MAKEFLAGS ) ) )
$( QUIET) echo " $( TERM_INFO) ALL TESTS PASSED $( TERM_RESET) "
e n d i f
i f e q ( $( IS_FACEBOOK_TREE ) , y e s )
i f n e q ( $( GNU_SED ) , n o )
test : deadcode
e n d i f
e n d i f
.PHONY : quick -test
quick-test : test_build ocaml_unit_test