Skip to content

Commit

Permalink
Correctly detect binary name
Browse files Browse the repository at this point in the history
  • Loading branch information
keynmol committed Jan 30, 2022
1 parent f567aad commit 6febfc1
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import _root_.bindgen.interface.Platform
import _root_.bindgen.interface.Platform.OS.*
import _root_.bindgen.interface.Platform.ClangInfo
import coursierapi.ResolutionParams
import coursierapi.Repository
Expand Down Expand Up @@ -304,7 +304,11 @@ def detectBinaryArtifacts: Map[String, (Artifact, File)] = if (
os <- Platform.OS.all
arch <- Platform.Arch.all
target = Platform.Target(os, arch)
file = folder / s"sn-bindgen-${target.string}" / "bindgen-out"
filename = os match {
case Windows => "bindgen-out.exe"
case _ => "bindgen-out"
}
file = folder / s"sn-bindgen-${target.string}" / filename
if file.exists()
} yield build(target.string, file)

Expand Down

0 comments on commit 6febfc1

Please sign in to comment.