Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
frama-c
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
pub
frama-c
Commits
5bec8558
Commit
5bec8558
authored
3 years ago
by
Allan Blanchard
Browse files
Options
Downloads
Patches
Plain Diff
[e-acsl] e-acsl-gcc: no more dev version, fix share
parent
f0d85067
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/plugins/e-acsl/scripts/e-acsl-gcc.sh
+5
-34
5 additions, 34 deletions
src/plugins/e-acsl/scripts/e-acsl-gcc.sh
with
5 additions
and
34 deletions
src/plugins/e-acsl/scripts/e-acsl-gcc.sh
+
5
−
34
View file @
5bec8558
...
@@ -63,11 +63,6 @@ warning () {
...
@@ -63,11 +63,6 @@ warning () {
BASEDIR
=
"
$(
realpath
`
dirname
$0
`
)
"
BASEDIR
=
"
$(
realpath
`
dirname
$0
`
)
"
error
"unable to find base dir of script"
$?
error
"unable to find base dir of script"
$?
# True if the script is launched from the E-ACSL sources, false otherwise
is_development_version
()
{
test
-f
"
$BASEDIR
/../E_ACSL.mli"
}
# Check if a given executable name can be found by in the PATH
# Check if a given executable name can be found by in the PATH
has_tool
()
{
has_tool
()
{
command
-v
"
$@
"
>
/dev/null 2>&1
&&
return
0
||
return
1
command
-v
"
$@
"
>
/dev/null 2>&1
&&
return
0
||
return
1
...
@@ -89,8 +84,6 @@ retrieve_framac_path() {
...
@@ -89,8 +84,6 @@ retrieve_framac_path() {
echo
"
$1
"
echo
"
$1
"
elif
[
-e
"
$BASEDIR
/
$1
"
]
;
then
elif
[
-e
"
$BASEDIR
/
$1
"
]
;
then
echo
"
$BASEDIR
/
$1
"
echo
"
$BASEDIR
/
$1
"
elif
is_development_version
&&
[
-e
"
$BASEDIR
/../../../../bin/
$1
"
]
;
then
echo
"
$BASEDIR
/../../../../bin/
$1
"
else
else
echo
"No executable '
$1
' or '
$BASEDIR
/
$1
' found"
echo
"No executable '
$1
' or '
$BASEDIR
/
$1
' found"
return
1
return
1
...
@@ -865,33 +858,11 @@ FRAMAC="$OPTION_FRAMAC"
...
@@ -865,33 +858,11 @@ FRAMAC="$OPTION_FRAMAC"
:
${
FRAMAC_SHARE
:
=
"
`
$FRAMAC
-no-autoload-plugins
-print-share-path
`
"
}
:
${
FRAMAC_SHARE
:
=
"
`
$FRAMAC
-no-autoload-plugins
-print-share-path
`
"
}
:
${
FRAMAC_PLUGIN
:
=
"
`
$FRAMAC
-no-autoload-plugins
-print-plugin-path
`
"
}
:
${
FRAMAC_PLUGIN
:
=
"
`
$FRAMAC
-no-autoload-plugins
-print-plugin-path
`
"
}
# Check if this is a development or an installed version
# Installed version. FRAMAC_SHARE should not be used here as Frama-C
if
is_development_version
;
then
# and E-ACSL may not be installed to the same location
# Development version
EACSL_SHARE
=
"
$BASEDIR
/../share/frama-c/share/e-acsl"
DEVELOPMENT
=
"
$(
realpath
"
$BASEDIR
/.."
)
"
EACSL_LIB
=
"
$BASEDIR
/../lib/frama-c-e-acsl"
error
"unable to find parent dir of base dir"
$?
EACSL_CONTRIB
=
"
$BASEDIR
/../share/frama-c-e-acsl/contrib"
# Check if the project has been built, as if this is a non-installed
# version that has not been built Frama-C will fallback to an installed one
# for instrumentation but still use local RTL
error
"Plugin in
$DEVELOPMENT
not compiled"
\
`
test
-f
"
$DEVELOPMENT
/META.frama-c-e_acsl"
-o
\
-f
"
$FRAMAC_PLUGIN
/META.frama-c-e_acsl"
;
echo
$?
`
EACSL_SHARE
=
"
$DEVELOPMENT
/share/e-acsl"
# E-ACSL should use its own dune site for getting lib and contrib
EACSL_LIB
=
"
$DEVELOPMENT
/lib"
EACSL_CONTRIB
=
"
$DEVELOPMENT
/contrib"
# Add the project directory to FRAMAC_PLUGINS,
# otherwise Frama-C uses an installed version
if
test
-f
"
$DEVELOPMENT
/META.frama-c-e_acsl"
;
then
FRAMAC_FLAGS
=
"-add-path=
$DEVELOPMENT
/top -add-path=
$DEVELOPMENT
$FRAMAC_FLAGS
"
;
fi
else
# Installed version. FRAMAC_SHARE should not be used here as Frama-C
# and E-ACSL may not be installed to the same location
EACSL_SHARE
=
"
$BASEDIR
/../share/frama-c/e-acsl"
EACSL_LIB
=
"
$BASEDIR
/../lib/frama-c/e-acsl"
EACSL_CONTRIB
=
"
$BASEDIR
/../share/frama-c/e-acsl/contrib"
fi
# Architecture-dependent flags. Since by default Frama-C uses 32-bit
# Architecture-dependent flags. Since by default Frama-C uses 32-bit
# architecture we need to make sure that same architecture is used for
# architecture we need to make sure that same architecture is used for
...
...
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