Skip to content

LeeTibbert/scala-native-example

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scala-native-example

A minimal Scala native example (https://github.com/scala-native/scala-native)

  • The project contains two source code files, a main.scala file that will call a function in stub.c
  • The scala native plugin is added in the project/plugins.sbt file
  • build.sbt runs the makefile, producing the shared library in the \target directory
  • A custom library path is added to nativeClangOptions so the stub library is found
  • Compile & run with "sbt run"

Dependencies

Fedora:

sudo dnf install clang-devel libgc-devel llvm-devel

About

A minimal Scala Native example

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Scala 63.8%
  • C 33.5%
  • Makefile 2.7%