Commit graph

3 commits

Author SHA1 Message Date
David Kubecka
462962ebab Delete existing out-edges before adding new ones in modify_erlcinfo
When the source file changes it could happen that some of its
dependecies get removed.  In that case we should remove these
former dependencies from the graph, so that they don't influence
recompilation of the source file anymore.
2015-04-06 22:10:15 +02:00
David Kubecka
22acf8db67 Assemble Dirs passed to update_erlcinfo in one place
Current separation of part of the logic into include_path
obscures the purpose of Dirs (see expand_file_names).
Moreover for each particular Erl its source file was included
twice in Dirs, which is now corrected.

Also InclDirs (specified in erl_opts) as part of erlcinfo
since they can affect resulting graph, which needs to be
therefore regenerated when InclDirs change.  See added
test as an example.
2015-04-05 00:46:34 +02:00
David Kubecka
b0320ce058 Basic test for erlc (re)compiling and erlcinfo 2015-04-05 00:16:50 +02:00