[erlang-questions] Elang compiler options from within a module?

Seglings Kungen <>
Wed May 9 18:36:57 CEST 2012


Hi All,
I have a simple module where i define a compile directive:
-module(test).
-compile(debug_info).
-export([test/0]).


test()->
    ok.
I compile it with erlc and load it

>test:module_info(compile).
[{options,[{outdir,"/Users/chris"}]},
 {version,"4.8.1"},
 {time,{2012,5,9,16,30,44}},
 {source,"/Users/chris/test.erl"}]

And we can see it has  not been debug_compiled.........

Where is it defined what compiler options can be used within a a module and
what can be don with erlc?


Chris
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120509/acbd42b2/attachment.html>


More information about the erlang-questions mailing list