From 16b2b2621d8e2414c7dcb1d1f16926f719814c24 Mon Sep 17 00:00:00 2001 From: Artem Pianykh Date: Thu, 13 Aug 2020 05:06:34 -0700 Subject: [PATCH] [java][tests] Compile with -g to make javac produce more debug info Summary: Extra info helps in debugging frontend issues and such. Reviewed By: ngorogiannis Differential Revision: D23101854 fbshipit-source-id: 27024675d --- infer/tests/javac.make | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/infer/tests/javac.make b/infer/tests/javac.make index 0f136fd2c..78b70976d 100644 --- a/infer/tests/javac.make +++ b/infer/tests/javac.make @@ -16,11 +16,13 @@ include $(TESTS_DIR)/infer.make PROJECT_ROOT ?= $(TESTS_DIR) +JAVAC_FLAGS = -g + $(OBJECTS): $(SOURCES) - $(QUIET)$(JAVAC) -cp $(CLASSPATH) $(SOURCES) + $(QUIET)$(JAVAC) $(JAVAC_FLAGS) -cp $(CLASSPATH) $(SOURCES) infer-out/report.json: $(JAVA_DEPS) $(SOURCES) $(MAKEFILE_LIST) $(QUIET)$(call silent_on_success,Testing infer/java in $(TEST_REL_DIR),\ $(INFER_BIN) --project-root $(PROJECT_ROOT) --dump-duplicate-symbols \ $(INFER_OPTIONS) -- \ - $(JAVAC) -cp $(CLASSPATH) $(SOURCES)) + $(JAVAC) $(JAVAC_FLAGS) -cp $(CLASSPATH) $(SOURCES))