Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
inox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LARA
inox
Commits
658bf42e
Commit
658bf42e
authored
12 years ago
by
Etienne Kneuss
Browse files
Options
Downloads
Patches
Plain Diff
Detect arch type and generate leon script accordingly
parent
fad0ae76
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
lib64-bin/libz3.so
+0
-0
0 additions, 0 deletions
lib64-bin/libz3.so
project/Build.scala
+12
-3
12 additions, 3 deletions
project/Build.scala
unmanaged/z3-64.jar
+0
-0
0 additions, 0 deletions
unmanaged/z3-64.jar
with
12 additions
and
3 deletions
lib64-bin/libz3.so
0 → 100755
+
0
−
0
View file @
658bf42e
File added
This diff is collapsed.
Click to expand it.
project/Build.scala
+
12
−
3
View file @
658bf42e
...
...
@@ -5,13 +5,22 @@ import Keys._
object
Leon
extends
Build
{
private
val
scriptName
=
"leon"
def
scriptFile
=
file
(
"."
)
/
scriptName
def
ldLibraryDir
=
file
(
"."
)
/
"lib-bin"
def
is64
=
System
.
getProperty
(
"sun.arch.data.model"
)
==
"64"
def
ldLibraryDir
=
file
(
"."
)
/
(
if
(
is64
)
"lib64-bin"
else
"lib-bin"
)
val
scriptTask
=
TaskKey
[
Unit
](
"script"
,
"Generate the "
+
scriptName
+
" Bash script"
)
<<=
(
streams
,
dependencyClasspath
in
Compile
,
classDirectory
in
Compile
)
map
{
(
s
,
deps
,
out
)
=>
if
(!
scriptFile
.
exists
)
{
s
.
log
.
info
(
"Generating script..."
)
s
.
log
.
info
(
"Generating script
("
+(
if
(
is64
)
"64b"
else
"32b"
)+
")
..."
)
try
{
val
depsPaths
=
deps
.
map
(
_
.
data
.
absolutePath
)
val
depsPaths
=
deps
.
map
(
_
.
data
.
absolutePath
).
filter
(
p
=>
if
(
p
.
endsWith
(
"unmanaged/z3.jar"
))
{
!
is64
}
else
if
(
p
.
endsWith
(
"unmanaged/z3-64.jar"
))
{
is64
}
else
{
true
}
)
// One ugly hack... Likely to fail for Windows, but it's a Bash script anyway.
val
scalaHomeDir
=
depsPaths
.
find
(
_
.
endsWith
(
"lib/scala-library.jar"
))
match
{
case
None
=>
throw
new
Exception
(
"Couldn't guess SCALA_HOME."
)
...
...
This diff is collapsed.
Click to expand it.
unmanaged/z3-64.jar
0 → 100644
+
0
−
0
View file @
658bf42e
File added
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment