Skip to content
Snippets Groups Projects
Commit dc119a2d authored by Kostyantyn Vorobyov's avatar Kostyantyn Vorobyov
Browse files

Update e-acsl-gcc.sh to check the value of the computed machdep flag

parent e1ecce20
No related branches found
No related tags found
No related merge requests found
......@@ -56,6 +56,9 @@ ERROR="ERROR parsing arguments:"
# architecture we need to make sure that same architecture is used for
# instrumentation and for compilation.
MACHDEPFLAGS="`getconf LONG_BIT`"
# Check if getconf gives out the value accepted by Frama-C/GCC
echo "$MACHDEPFLAGS" | grep '16\|32\|64' \
|| error "$MACHDEPFLAGS-bit architecture not supported"
# -machdep option sent to frama-c
MACHDEP="-machdep gcc_x86_$MACHDEPFLAGS"
# Macro for correct preprocessing of Frama-C generated code
......
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