Skip to content

Commit

Permalink
fix: Make a list of linked libraries distinct seq (scala-native#3694)
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechMazur committed Jan 25, 2024
1 parent 5d3ef25 commit 1adee23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tools/src/main/scala/scala/scalanative/build/LLVM.scala
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,8 @@ 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" + _)

val flags = {
Expand Down

0 comments on commit 1adee23

Please sign in to comment.