aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/erl_init.c
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2011-02-24 16:18:24 +0100
committerBjörn Gustavsson <[email protected]>2011-08-18 10:00:29 +0200
commit581a6659f9d67fb0da5399e50ce49070e4becebd (patch)
tree9f3a4f17083a77d650d3ca39f41edbd80d58fa28 /erts/emulator/beam/erl_init.c
parentd12294aea905b4bc188c1e1c84f0ec7c2284faa7 (diff)
downloadotp-581a6659f9d67fb0da5399e50ce49070e4becebd.tar.gz
otp-581a6659f9d67fb0da5399e50ce49070e4becebd.tar.bz2
otp-581a6659f9d67fb0da5399e50ce49070e4becebd.zip
erl: Add +L to suppress loading of line number information
Diffstat (limited to 'erts/emulator/beam/erl_init.c')
-rw-r--r--erts/emulator/beam/erl_init.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/erts/emulator/beam/erl_init.c b/erts/emulator/beam/erl_init.c
index 5f3f653e99..286fe9ff1e 100644
--- a/erts/emulator/beam/erl_init.c
+++ b/erts/emulator/beam/erl_init.c
@@ -127,6 +127,8 @@ int erts_modified_timing_level;
int erts_no_crash_dump = 0; /* Use -d to suppress crash dump. */
+int erts_no_line_info = 0; /* -L: Don't load line information */
+
/*
* Other global variables.
*/
@@ -936,7 +938,9 @@ erl_start(int argc, char **argv)
case 'l':
display_loads++;
break;
-
+ case 'L':
+ erts_no_line_info = 1;
+ break;
case 'v':
#ifdef DEBUG
if (argv[i][2] == '\0') {