Skip to content

Commit

Permalink
fix: Make a list of linked libraries distinct seq (#3694)
Browse files Browse the repository at this point in the history
(cherry picked from commit 174fcb0)
  • Loading branch information
WojciechMazur committed Jan 19, 2024
1 parent 9987987 commit f097bb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/src/main/scala/scala/scalanative/build/LLVM.scala
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ private[scalanative] object LLVM {
if (config.targetsWindows) Seq("Dbghelp")
else Seq("pthread", "dl")
platformsLinks ++ srclinks ++ gclinks
}
}.distinct
config.logger.info(s"Linking with [${links.mkString(", ")}]")
val linkopts = config.linkingOptions ++ links.map("-l" + _)

Expand Down

0 comments on commit f097bb1

Please sign in to comment.