Skip to content
Snippets Groups Projects
Commit 69748a58 authored by Lars Hupel's avatar Lars Hupel
Browse files

leon.base property is not needed

parent f3db3bd3
No related branches found
No related tags found
No related merge requests found
......@@ -88,13 +88,11 @@ script := {
s.log.info("Generating '"+f.getName+"' script ("+(if(is64) "64b" else "32b")+")...")
}
val paths = (res.getAbsolutePath +: out.getAbsolutePath +: cps.map(_.data.absolutePath)).mkString(System.getProperty("path.separator"))
val base = baseDirectory.value.getAbsolutePath
IO.write(f, s"""|#!/bin/bash --posix
|
|SCALACLASSPATH="$paths"
|BASEDIRECTORY="$base"
|
|java -Xmx2G -Xms512M -Xss64M -classpath "$${SCALACLASSPATH}" -Dleon.base="$${BASEDIRECTORY}" -Dscala.usejavacp=false scala.tools.nsc.MainGenericRunner -classpath "$${SCALACLASSPATH}" leon.Main $$@ 2>&1 | tee -i last.log
|java -Xmx2G -Xms512M -Xss64M -classpath "$${SCALACLASSPATH}" -Dscala.usejavacp=false scala.tools.nsc.MainGenericRunner -classpath "$${SCALACLASSPATH}" leon.Main $$@ 2>&1 | tee -i last.log
|""".stripMargin)
f.setExecutable(true)
} catch {
......
......@@ -17,11 +17,8 @@ object Component extends LeonComponent {
val name = "Isabelle"
val description = "Isabelle solver"
val leonBase =
Paths.get(Option(System.getProperty("leon.base")).getOrElse(".")).toAbsolutePath()
val platform =
Platform.guess.getOrElse(Platform.genericPlatform(leonBase.resolve("contrib").toAbsolutePath()))
def platform =
Platform.guess.getOrElse(sys.error("Unknown platform; can't run Isabelle here"))
val optMapping = LeonFlagOptionDef(
name = "isabelle:mapping",
......
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