Skip to content

Commit

Permalink
Give scala-native some include files to link with
Browse files Browse the repository at this point in the history
  • Loading branch information
reidspencer committed Jan 11, 2025
1 parent a8b0d5d commit 9bc08ad
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,11 @@ lazy val utils_cp: CrossProject = CrossModule("utils", "riddl-utils")(JVM, JS, N
"org.scalatest" %%% "scalatest" % V.scalatest % Test
)
)
.nativeConfigure(With.native(mode = "fast", buildTarget = "static"))
.nativeConfigure(With.native(mode = "fast", buildTarget = "static", linkOptions = Seq(
"-I/usr/include",
"-I/usr/local/opt/curl/include",
"-I/opt/homebrew/opt/curl/include"
)))
.nativeConfigure(
With.build_info_plus_keys(
"scalaNativeVersion" -> scalanative.sbtplugin.ScalaNativePlugin.autoImport.nativeVersion
Expand Down Expand Up @@ -398,11 +402,6 @@ lazy val docProjects = List(

lazy val docOutput: File = file("doc") / "src" / "main" / "hugo" / "static" / "apidoc"

//def akkaMappings: Map[(String, String), URL] = Map(
// ("com.typesafe.akka", "akka-actor") -> url(s"http://doc.akka.io/api/akka/"),
// ("com.typesafe", "config") -> url("http://typesafehub.github.io/config/latest/api/")
//)

lazy val docsite = DocSite(
dirName = "doc",
apiOutput = file("src") / "main" / "hugo" / "static" / "apidoc",
Expand Down

0 comments on commit 9bc08ad

Please sign in to comment.