mirror of
https://github.com/correl/rebar.git
synced 2024-12-18 03:00:17 +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) ->
|
||||
case filename:extension(Target) of
|
||||
".so" -> filename:rootname(Target, ".so") ++ ".dll";
|
||||
[] -> Target ++ ".exe";
|
||||
Other -> Other
|
||||
".so" -> filename:rootname(Target, ".so") ++ ".dll";
|
||||
[] -> Target ++ ".exe";
|
||||
_Other -> Target
|
||||
end.
|
||||
|
||||
%% TODO: DEPRECATED: remove support for non-port_specs syntax [old_*()]
|
||||
|
|
Loading…
Reference in a new issue