Skip to content

Commit 2b9aecf

Browse files
committed
Renaming .dlyb to .so
See #1 and: goertzenator/rust.mk@1bf843b
1 parent 8988b22 commit 2b9aecf

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/rebar3_rust_utils.erl

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,9 +61,11 @@ compile_crate(CrateDir, PrivDir) ->
6161
).
6262

6363
copy_file(SourceFile, DestinationDir) ->
64-
DestinationFile = filename:join(
65-
DestinationDir,
66-
filename:basename(SourceFile)
67-
),
64+
FileName = case filename:extension(SourceFile) of
65+
".dylib" -> filename:rootname(filename:basename(SourceFile)) ++ ".so";
66+
_ -> filename:basename(SourceFile)
67+
end,
68+
69+
DestinationFile = filename:join(DestinationDir, FileName),
6870

6971
file:copy(SourceFile, DestinationFile).

0 commit comments

Comments
 (0)