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:
parent
f88b5c74c9
commit
c55384c0ec
@ -45,7 +45,12 @@ compile(FileName, LibDirs) ->
|
||||
warn_export_vars,
|
||||
strong_validation,
|
||||
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) ->
|
||||
Path = filename:split(filename:absname(Dir)),
|
||||
|
Loading…
Reference in New Issue
Block a user