aboutsummaryrefslogtreecommitdiffstats
path: root/src/rlx_state.erl
diff options
context:
space:
mode:
authorTristan Sloughter <[email protected]>2014-11-05 19:42:27 -0600
committerTristan Sloughter <[email protected]>2014-11-06 12:07:17 -0600
commit9b066cc53e342f3928dfb01a3511e3869b18e2c0 (patch)
treebe79c248ccd7152913d45a03767a8f8136647765 /src/rlx_state.erl
parent75b44fa44ef70e078dd450bf68bfaea4d48bf4e3 (diff)
downloadrelx-9b066cc53e342f3928dfb01a3511e3869b18e2c0.tar.gz
relx-9b066cc53e342f3928dfb01a3511e3869b18e2c0.tar.bz2
relx-9b066cc53e342f3928dfb01a3511e3869b18e2c0.zip
add option to strip debug_info from beam files if not dev_mode
Diffstat (limited to 'src/rlx_state.erl')
-rw-r--r--src/rlx_state.erl11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/rlx_state.erl b/src/rlx_state.erl
index b7cb6ba..a21c9a6 100644
--- a/src/rlx_state.erl
+++ b/src/rlx_state.erl
@@ -36,6 +36,8 @@
overrides/2,
skip_apps/1,
skip_apps/2,
+ debug_info/1,
+ debug_info/2,
goals/1,
goals/2,
config_file/1,
@@ -102,6 +104,7 @@
sys_config :: file:filename() | undefined,
overrides=[] :: [{AppName::atom(), Directory::file:filename()}],
skip_apps=[] :: [AppName::atom()],
+ debug_info=keep :: keep | strip,
configured_releases :: releases(),
realized_releases :: releases(),
dev_mode=false :: boolean(),
@@ -183,6 +186,14 @@ skip_apps(#state_t{skip_apps=Apps}) ->
skip_apps(State, SkipApps) ->
State#state_t{skip_apps=SkipApps}.
+-spec debug_info(t()) -> keep | strip.
+debug_info(#state_t{debug_info=DebugInfo}) ->
+ DebugInfo.
+
+-spec debug_info(t(), keep | strip) -> t().
+debug_info(State, DebugInfo) ->
+ State#state_t{debug_info=DebugInfo}.
+
%% @doc get the current log state for the system
-spec log(t()) -> ec_cmd_log:t().
log(#state_t{log=LogState}) ->