Skip to content

Commit

Permalink
Disable debug and enable optimizations by default.
Browse files Browse the repository at this point in the history
This does not affect stacktraces produced during
a crash when run using `mono --debug`.
  • Loading branch information
pchote authored and obrakmann committed Mar 30, 2019
1 parent 93193d4 commit 9cbf082
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
@@ -1,7 +1,7 @@
############################# INSTRUCTIONS #############################
#
# to compile, run:
# make [DEBUG=false]
# make [DEBUG=true]
#
# to check unit tests (requires NUnit version >= 2.6), run:
# make nunit [NUNIT_CONSOLE=<path-to/nunit[2]-console>] [NUNIT_LIBS_PATH=<path-to-libs-dir>] [NUNIT_LIBS=<nunit-libs>]
Expand Down Expand Up @@ -56,7 +56,7 @@ WHITELISTED_CORE_ASSEMBLIES = mscorlib.dll System.dll System.Configuration.dll S
NUNIT_LIBS_PATH :=
NUNIT_LIBS := $(NUNIT_LIBS_PATH)nunit.framework.dll

DEBUG = true
DEBUG = false
ifeq ($(DEBUG), $(filter $(DEBUG),false no n off 0))
CSFLAGS += -debug:pdbonly -optimize+
else
Expand Down

0 comments on commit 9cbf082

Please sign in to comment.