From 9892e2b286bcb01dfce2bd723d760c4e64cd0803 Mon Sep 17 00:00:00 2001 From: Nao Pross Date: Sat, 24 Nov 2018 18:52:22 +0100 Subject: Enable use of assertions Assertions are faster and normally not enabled, so they are a good to debug when things that *should* never happen, happen. --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index cb157b1..e2ef854 100644 --- a/Makefile +++ b/Makefile @@ -2,6 +2,9 @@ MAINCLASS := subconscious.Subconscious SOURCES := $(shell find src -iname '*.java') +# debug or release mode +DEBUG=1 + # java compiler configuraton JAVAC := javac JAVAC_ARGS := -Xlint:all \ @@ -19,6 +22,9 @@ JAVA_ARGS := -cp ../lib/gson-2.6.2.jar:. -Xmx2G ifeq ($(USE_JDB),1) JAVA_ARGS += -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=8000 endif +ifeq ($(DEBUG),1) + JAVA_ARGS += -enableassertions +endif # recipes -- cgit v1.2.1