diff options
author | Björn Gustavsson <[email protected]> | 2017-12-14 10:29:40 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2017-12-14 10:29:40 +0100 |
commit | ebe6e8a7fa591b31c1378106173a4ebb8a2b16de (patch) | |
tree | 00a858bab0cda5bd1b5fbc31469f232aec9597e3 /lib/stdlib | |
parent | 9f229208baa457f9a5979dedf2d8094d5c9af53a (diff) | |
parent | d455cf67203c29354ff792ea44aea09e7a2155f8 (diff) | |
download | otp-ebe6e8a7fa591b31c1378106173a4ebb8a2b16de.tar.gz otp-ebe6e8a7fa591b31c1378106173a4ebb8a2b16de.tar.bz2 otp-ebe6e8a7fa591b31c1378106173a4ebb8a2b16de.zip |
Merge pull request #1653 from tonyrog/makedep_side_effect
Add -MMD option to erlc
OTP-14830
Diffstat (limited to 'lib/stdlib')
-rw-r--r-- | lib/stdlib/src/erl_compile.erl | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/stdlib/src/erl_compile.erl b/lib/stdlib/src/erl_compile.erl index 18d7548fdc..f781312ca2 100644 --- a/lib/stdlib/src/erl_compile.erl +++ b/lib/stdlib/src/erl_compile.erl @@ -188,6 +188,8 @@ parse_dep_option("", T) -> {[makedep,{makedep_output,standard_io}],T}; parse_dep_option("D", T) -> {[makedep],T}; +parse_dep_option("MD", T) -> + {[makedep_side_effect],T}; parse_dep_option("F"++Opt, T0) -> {File,T} = get_option("MF", Opt, T0), {[makedep,{makedep_output,File}],T}; @@ -221,6 +223,7 @@ usage() -> "the dependencies"}, {"-MP","add a phony target for each dependency"}, {"-MD","same as -M -MT file (with default 'file')"}, + {"-MMD","generate dependencies as a side-effect"}, {"-o name","name output directory or file"}, {"-pa path","add path to the front of Erlang's code path"}, {"-pz path","add path to the end of Erlang's code path"}, |