Skip to content
Snippets Groups Projects
Commit a2e7db77 authored by Etienne Kneuss's avatar Etienne Kneuss
Browse files

Break the inner-compiler in different ways so that it works with sbt test.

parent d228bea0
No related branches found
No related tags found
No related merge requests found
...@@ -22,5 +22,8 @@ case class Settings( ...@@ -22,5 +22,8 @@ case class Settings(
val synthesis: Boolean = false, val synthesis: Boolean = false,
val xlang: Boolean = false, val xlang: Boolean = false,
val verify: Boolean = true, val verify: Boolean = true,
// This is a list of directories that is passed as class-path of the inner-compiler.
// It needs to contain at least a directory containing scala-library.jar, and
// one for the leon runtime library.
val classPath: List[String] = Settings.defaultClassPath() val classPath: List[String] = Settings.defaultClassPath()
) )
...@@ -13,7 +13,8 @@ object ExtractionPhase extends LeonPhase[List[String], Program] { ...@@ -13,7 +13,8 @@ object ExtractionPhase extends LeonPhase[List[String], Program] {
val settings = new NSCSettings val settings = new NSCSettings
settings.extdirs.value = ctx.settings.classPath.mkString(":") //settings.extdirs.value = ctx.settings.classPath.mkString(":")
settings.usejavacp.value = true
val compilerOpts = args.filterNot(_.startsWith("--")) val compilerOpts = args.filterNot(_.startsWith("--"))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment