Skip to content

Commit

Permalink
leon.base property is not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
larsrh committed Mar 20, 2016
1 parent f3db3bd commit 69748a5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
4 changes: 1 addition & 3 deletions build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
7 changes: 2 additions & 5 deletions src/main/scala/leon/solvers/isabelle/Component.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit 69748a5

Please sign in to comment.