Skip to content

Commit da82920

Browse files
committed
Merge pull request #16 from joedevivo/master
This should handle cases where .d files have unexpected leading whitespace
2 parents cb28b04 + 0d71088 commit da82920

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/pc_compilation.erl

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -178,10 +178,8 @@ bin_deps(Bin) ->
178178
end.
179179

180180
parse_bin_deps(Bin, Deps) ->
181-
Sz = size(Bin),
182-
<<Bin:Sz/binary, ": ", X/binary>> = Deps,
183-
Ds = re:split(X, "\\s*\\\\\\R\\s*|\\s+", [{return, binary}]),
184-
[D || D <- Ds, D =/= <<>>].
181+
Ds = re:split(Deps, "\\s*\\\\\\R\\s*|\\s+", [{return, binary}]),
182+
[D || D <- Ds, D =/= <<>>, D =/= <<Bin/binary,":">>].
185183

186184
%%
187185
%% == linking ==

0 commit comments

Comments
 (0)