Skip to content

Commit 7d2e6d0

Browse files
authored
Merge pull request #56 from tolbrino/tb-win32
Fix file wildcard issue
2 parents 43d6368 + 81ad8df commit 7d2e6d0

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/pc_port_specs.erl

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,6 @@ maybe_report_wc(Source, Found) ->
129129
end,
130130
Found.
131131

132-
wildcard(Source) ->
133-
maybe_report_wc(Source, filelib:wildcard(Source)).
134132
wildcard(Source, WorkDir) ->
135133
maybe_report_wc(Source, filelib:wildcard(Source, WorkDir)).
136134

@@ -164,7 +162,7 @@ get_port_spec(Config, OsType, {_Arch, Target, Sources, Opts}) ->
164162
SourceFiles =
165163
lists:flatmap(
166164
fun(Source) ->
167-
wildcard(expand_env(Source, Env))
165+
wildcard(expand_env(Source, Env), rebar_state:dir(Config))
168166
end, Sources),
169167
LinkLang =
170168
case lists:any(

0 commit comments

Comments
 (0)