From 67f619145f1ab26bcab5cdc05af983a70922f7e2 Mon Sep 17 00:00:00 2001 From: Alexey Romanov Date: Wed, 20 Apr 2011 11:30:56 +0400 Subject: [PATCH] Define DEBUG macros in rebar.debug.config --- rebar.debug.config | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rebar.debug.config b/rebar.debug.config index f7d88f2..23881e6 100644 --- a/rebar.debug.config +++ b/rebar.debug.config @@ -1,8 +1,8 @@ % -*- mode: erlang -*- -{erl_opts, [debug_info]}. %% required for dialyzer -{port_envs, [{"^(?!.*win32)", "DRV_CFLAGS", "$DRV_CFLAGS -g -Wall -Wextra -Wno-unused-parameter"}, +{erl_opts, [debug_info, {d, 'DEBUG'}]}. %% required for dialyzer +{port_envs, [{"^(?!.*win32)", "DRV_CFLAGS", "$DRV_CFLAGS -D DEBUG -g -Wall -Wextra -Wno-unused-parameter"}, {"^(?!.*win32)", "DRV_LDFLAGS", "$DRV_LDFLAGS -lsqlite3"}, - {"win32", "CFLAGS", "/IF:/MyProgramming/sqlite-amalgamation /Ic_src /W4 /wd4100 /wd4204"}, + {"win32", "CFLAGS", "/DDEBUG /IF:/MyProgramming/sqlite-amalgamation /Ic_src /W4 /wd4100 /wd4204"}, {"win32", "LDFLAGS", "sqlite3.lib"}]}. {cover_enabled, true}. {eunit_opts, [verbose, {report,{eunit_surefire,[{dir,"."}]}}]}.