Skip to content

Commit 9bc08ad

Browse files
author
reidspencer
committed
Give scala-native some include files to link with
1 parent a8b0d5d commit 9bc08ad

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

build.sbt

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,11 @@ lazy val utils_cp: CrossProject = CrossModule("utils", "riddl-utils")(JVM, JS, N
114114
"org.scalatest" %%% "scalatest" % V.scalatest % Test
115115
)
116116
)
117-
.nativeConfigure(With.native(mode = "fast", buildTarget = "static"))
117+
.nativeConfigure(With.native(mode = "fast", buildTarget = "static", linkOptions = Seq(
118+
"-I/usr/include",
119+
"-I/usr/local/opt/curl/include",
120+
"-I/opt/homebrew/opt/curl/include"
121+
)))
118122
.nativeConfigure(
119123
With.build_info_plus_keys(
120124
"scalaNativeVersion" -> scalanative.sbtplugin.ScalaNativePlugin.autoImport.nativeVersion
@@ -398,11 +402,6 @@ lazy val docProjects = List(
398402

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

401-
//def akkaMappings: Map[(String, String), URL] = Map(
402-
// ("com.typesafe.akka", "akka-actor") -> url(s"http://doc.akka.io/api/akka/"),
403-
// ("com.typesafe", "config") -> url("http://typesafehub.github.io/config/latest/api/")
404-
//)
405-
406405
lazy val docsite = DocSite(
407406
dirName = "doc",
408407
apiOutput = file("src") / "main" / "hugo" / "static" / "apidoc",

0 commit comments

Comments
 (0)