Removed GENERATE_INFER_GENRULES flag

Reviewed By: jeremydubreil

Differential Revision: D6708713

fbshipit-source-id: 39ba28b
master
Tony Hu 7 years ago committed by Facebook Github Bot
parent f5e7a6e6d7
commit 39564905f2

19
DEFS

@ -36,19 +36,18 @@ def create_genrules(
name, name,
srcs srcs
): ):
if 'GENERATE_INFER_GENRULES' in os.environ and srcs: for analyzer in analyzers:
for analyzer in analyzers: analyzer_name = name + '_{}'.format(analyzer)
analyzer_name = name + '_{}'.format(analyzer) genrule(
genrule( name = analyzer_name,
name = analyzer_name, srcs=srcs,
srcs=srcs, cmd = ' '.join([
cmd = ' '.join([
os.getenv('INFER_BIN', 'infer'), os.getenv('INFER_BIN', 'infer'),
'-a', analyzer, '-a', analyzer,
'--results-dir', '$OUT', '--results-dir', '$OUT',
'--classpath', '$(classpath :{})'.format(name), '--classpath', '$(classpath :{})'.format(name),
'--sourcepath', '$SRCDIR', '--sourcepath', '$SRCDIR',
'--generated-classes', '$(location :{})'.format(name), '--generated-classes', '$(location :{})'.format(name),
]), ]),
out = '{}_out'.format(analyzer), out = '{}_out'.format(analyzer),
) )

@ -34,8 +34,7 @@ $(JSON_REPORT): $(JAVA_DEPS) $(JAVA_SOURCE_FILES) $(MAKEFILE_LIST)
$(QUIET)cd $(ROOT_DIR) && \ $(QUIET)cd $(ROOT_DIR) && \
$(REMOVE_DIR) buck-out && \ $(REMOVE_DIR) buck-out && \
$(call silent_on_success,Testing Buck genrule for Java integration,\ $(call silent_on_success,Testing Buck genrule for Java integration,\
INFER_BIN="$(INFER_BIN)" NO_BUCKD=1 GENERATE_INFER_GENRULES=1 \ INFER_BIN="$(INFER_BIN)" NO_BUCKD=1 $(BUCK) build --no-cache $(INFER_TARGET))
$(BUCK) build --no-cache $(INFER_TARGET))
$(QUIET)touch $@ $(QUIET)touch $@
infer-out/report.json: $(JSON_REPORT) $(MAKEFILE_LIST) infer-out/report.json: $(JSON_REPORT) $(MAKEFILE_LIST)

Loading…
Cancel
Save