erlang/otp — pull request #350 by efcasado (2014-05-01 07:10:46+00:00)
Title: Put compile options from code into parse_transfrom/2 options variable.

Put compile options from code (i.e. -compile(myoption1)) into the options variable used as second argument in parse_transform/2. This makes it possible to access all compile options (i.e. the ones specified in the command-line and the ones specified in code) in a consistent way.

```erlang
-module(dummy_module).

-compile({parse_transform, dummy_transform}).
-compile(dummy_transform_option1).
```

```erlang
-module(dummy_transform).

-export([parse_transform/2]).

parse_transform(Forms, Opts) ->
true = lists:member(dummy_transform_option1, Opts),
Forms.
```