Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
keynmol committed Nov 19, 2023
1 parent 1245f2c commit 098ef82
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
7 changes: 3 additions & 4 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,7 @@ lazy val `tree-sitter` = project
Binding(
baseDirectory.value / "tree-sitter" / "lib" / "include" / "tree_sitter" / "api.h",
"treesitter",
cImports = List("tree_sitter/api.h"),
clangFlags = List("-std=gnu99")
cImports = List("tree_sitter/api.h")
)
},
// Copy generated Scala parser
Expand All @@ -59,7 +58,7 @@ lazy val `tree-sitter` = project
baseDirectory.value / "tree-sitter-scala" / "src"
val resourcesFolder = (Compile / resourceManaged).value / "scala-native"

val fileNames = List("parser.c", "scanner.c")
val fileNames = List("parser.c", "scanner.c", "stack.h")

fileNames.foreach { fileName =>
IO.copyFile(scalaParserLocation / fileName, resourcesFolder / fileName)
Expand All @@ -79,7 +78,7 @@ lazy val `tree-sitter` = project
)
)
.withCompileOptions(
conf.compileOptions ++ List(s"-I${base / "lib" / "include"}")
List(s"-I${base / "lib" / "include"}") ++ conf.compileOptions
)
}
)
Expand Down
2 changes: 1 addition & 1 deletion example-tree-sitter/tree-sitter
Submodule tree-sitter updated 187 files

0 comments on commit 098ef82

Please sign in to comment.