Commit 95ef2ec0 authored by Pedro Gonnet's avatar Pedro Gonnet
Browse files

add a flag for loop unrolling, defaults to whatever has been set for --enble-optimization.

parent db88daf8
......@@ -278,6 +278,18 @@ if test "$enable_san" = "yes"; then
fi
fi
# Add loop unrolling to the compiler flags, if requested.
AC_ARG_ENABLE([loop-unrolling],
[AS_HELP_STRING([--enable-loop-unrolling],
[Tell the compiler explicitly to unroll loops @<:@no/yes@:>@]
)],
[enable_loop_unrolling="$enableval"],
[enable_loop_unrolling="yes"]
)
if test "$enable_loop_unrolling" = "yes"; then
CFLAGS="$CFLAGS -funroll-loops"
fi
# Autoconf stuff.
AC_PROG_INSTALL
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment