mirror of
https://github.com/correl/rebar.git
synced 2025-01-05 11:08:16 +00:00
Fix file extension bug (Reported-by: Tony Rogvall)
This commit is contained in:
parent
2e36109181
commit
635d1a9456
1 changed files with 3 additions and 3 deletions
|
@ -304,9 +304,9 @@ maybe_switch_extension(_OsType, Target) ->
|
||||||
|
|
||||||
switch_to_dll_or_exe(Target) ->
|
switch_to_dll_or_exe(Target) ->
|
||||||
case filename:extension(Target) of
|
case filename:extension(Target) of
|
||||||
".so" -> filename:rootname(Target, ".so") ++ ".dll";
|
".so" -> filename:rootname(Target, ".so") ++ ".dll";
|
||||||
[] -> Target ++ ".exe";
|
[] -> Target ++ ".exe";
|
||||||
Other -> Other
|
_Other -> Target
|
||||||
end.
|
end.
|
||||||
|
|
||||||
%% TODO: DEPRECATED: remove support for non-port_specs syntax [old_*()]
|
%% TODO: DEPRECATED: remove support for non-port_specs syntax [old_*()]
|
||||||
|
|
Loading…
Reference in a new issue