Transform code using pmod_pt module before checking

Helps suppressing the error "parameterized modules are no longer supported" which libraries like ChicagoBoss depend on.
This commit is contained in:
Ahmad Sherif 2014-09-01 17:53:16 +03:00
parent f88b5c74c9
commit c55384c0ec

View File

@ -45,7 +45,12 @@ compile(FileName, LibDirs) ->
warn_export_vars, warn_export_vars,
strong_validation, strong_validation,
report] ++ report] ++
[{i, filename:join(Root, I)} || I <- LibDirs]). [{i, filename:join(Root, I)} || I <- LibDirs] ++
case lists:member("deps/pmod_transform/include", LibDirs) of
true -> [{parse_transform, pmod_pt}];
_ -> []
end
).
get_root(Dir) -> get_root(Dir) ->
Path = filename:split(filename:absname(Dir)), Path = filename:split(filename:absname(Dir)),