[build] clean out stale binaries

Summary:
Recently we changed the binaries we build and use but it wasn't obvious that
some of the old binaries disappeared. For instance, nothing short of `git clean
-xfd` would get rid of "infer/bin/InferPrint", which can lead to frustrating
attempts to make InferPrint not segfault.

Mitigate this in two ways:
- be more strict in the binaries we ignore in .gitignore, so InferPrint would should up in "git status"
- be less strict in the binaries we clean out with `make clean` so that
  InferPrint et al. gets deleted by `make clean`

Reviewed By: jberdine

Differential Revision: D5120573

fbshipit-source-id: 44e7954
master
Jules Villard 8 years ago committed by Facebook Github Bot
parent a7cff528fa
commit bee1bbc26b

10
.gitignore vendored

@ -89,7 +89,15 @@ buck-out/
.buckd/
#other
/infer/bin
/infer/bin/infer
/infer/bin/infer.byte
/infer/bin/infer.native
/infer/bin/infer-analyze
/infer/bin/infer-capture
/infer/bin/infer-compile
/infer/bin/infer-report
/infer/bin/infer-reportdiff
/infer/bin/infer-run
/infer/man
/infer/src/base/Version.ml

@ -411,8 +411,10 @@ clean:
$(REMOVE) base/Version.ml.tmp.*
$(REMOVE) backend/jsonbug_{j,t}.ml{,i}
$(REMOVE) checkers/stacktree_{j,t}.ml{,i}
$(REMOVE) $(INFER_BIN){,.byte,.native} $(INFER_BIN_ALIASES)
$(REMOVE) $(INFERUNIT_BIN) $(CHECKCOPYRIGHT_BIN)
# be a bit more aggressive than needed with what we remove here so that stale binaries that
# only existed in previous versions get removed as well
$(REMOVE) $(BIN_DIR)/Infer* $(BIN_DIR)/infer-* $(INFER_BIN){,.byte,.native} $(INFER_BIN_ALIASES) \
$(INFERUNIT_BIN) $(CHECKCOPYRIGHT_BIN)
$(REMOVE) $(CLANG_ATDGEN_STUBS)
$(REMOVE) $(INFER_CLANG_FCP_MIRRORED_FILES)
$(REMOVE) $(INFER_CREATE_TRACEVIEW_LINKS_BIN)

Loading…
Cancel
Save