Skip to content
Snippets Groups Projects
Commit c53783ad authored by Andre Maroneze's avatar Andre Maroneze
Browse files

[e-acsl-gcc.sh] search META also in internal plugins directory

parent bd4c6f43
No related branches found
No related tags found
No related merge requests found
...@@ -303,6 +303,15 @@ if [ -z "$1" ]; then ...@@ -303,6 +303,15 @@ if [ -z "$1" ]; then
error "no input files"; error "no input files";
fi fi
# Check Frama-C and GCC executable names
check_tool "$OPTION_FRAMAC"
check_tool "$OPTION_CC"
# Frama-C directories
FRAMAC="$OPTION_FRAMAC"
FRAMAC_SHARE="`$FRAMAC -print-share-path`"
FRAMAC_PLUGIN="`$FRAMAC -print-plugin-path`"
# Check if this is a development or an installed version # Check if this is a development or an installed version
if [ -f "$BASEDIR/../E_ACSL.mli" ]; then if [ -f "$BASEDIR/../E_ACSL.mli" ]; then
# Development version # Development version
...@@ -311,7 +320,8 @@ if [ -f "$BASEDIR/../E_ACSL.mli" ]; then ...@@ -311,7 +320,8 @@ if [ -f "$BASEDIR/../E_ACSL.mli" ]; then
# version that has not been built Frama-C will fallback to an installed one # version that has not been built Frama-C will fallback to an installed one
# for instrumentation but still use local RTL # for instrumentation but still use local RTL
error "Plugin in $DEVELOPMENT not compiled" \ error "Plugin in $DEVELOPMENT not compiled" \
`test -f "$DEVELOPMENT/META.frama-c-e_acsl"; echo $?` `test -f "$DEVELOPMENT/META.frama-c-e_acsl" -o \
-f "$FRAMAC_PLUGIN/META.frama-c-e_acsl"; echo $?`
EACSL_SHARE="$DEVELOPMENT/share/e-acsl" EACSL_SHARE="$DEVELOPMENT/share/e-acsl"
# Add the project directory to FRAMAC_PLUGINS, # Add the project directory to FRAMAC_PLUGINS,
# otherwise Frama-C uses an installed version # otherwise Frama-C uses an installed version
...@@ -336,13 +346,7 @@ CPPMACHDEP="-D__FC_MACHDEP_X86_$MACHDEPFLAGS" ...@@ -336,13 +346,7 @@ CPPMACHDEP="-D__FC_MACHDEP_X86_$MACHDEPFLAGS"
# GCC machine option # GCC machine option
GCCMACHDEP="-m$MACHDEPFLAGS" GCCMACHDEP="-m$MACHDEPFLAGS"
# Check if Frama-C and GCC executable names
check_tool "$OPTION_FRAMAC"
check_tool "$OPTION_CC"
# Frama-C and related flags # Frama-C and related flags
FRAMAC="$OPTION_FRAMAC"
FRAMAC_SHARE="`$FRAMAC -print-share-path`"
FRAMAC_CPP_EXTRA=" FRAMAC_CPP_EXTRA="
$OPTION_FRAMAC_CPP_EXTRA $OPTION_FRAMAC_CPP_EXTRA
-D$EACSL_MACRO_ID -D$EACSL_MACRO_ID
...@@ -499,4 +503,4 @@ if [ -n "$OPTION_COMPILE" ]; then ...@@ -499,4 +503,4 @@ if [ -n "$OPTION_COMPILE" ]; then
error "fail to compile/link instrumented code: $@" $?; error "fail to compile/link instrumented code: $@" $?;
done done
fi fi
exit 0; exit 0;
\ No newline at end of file
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