Commit ba4d29a0 authored by Roland Levillain's avatar Roland Levillain
Browse files

More on CXXFLAGS in configure.ac.

	* configure.ac (TESTS_CXXFLAGS_SPEED): New variable.
	(TOOLS_CXXFLAGS): Append `-Wall -W'.


git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@1862 4aad255d-cdde-0310-9447-f3009e2ae8c0
parent 086e6dfd
2008-04-14 Roland Levillain <roland@lrde.epita.fr>
More on CXXFLAGS in configure.ac.
* configure.ac (TESTS_CXXFLAGS_SPEED): New variable.
(TOOLS_CXXFLAGS): Append `-Wall -W'.
2008-04-14 Roland Levillain <roland@lrde.epita.fr> 2008-04-14 Roland Levillain <roland@lrde.epita.fr>
Add a test on regular neighborhoods. Add a test on regular neighborhoods.
......
...@@ -33,23 +33,32 @@ fi ...@@ -33,23 +33,32 @@ fi
AC_LANG([C++]) AC_LANG([C++])
AC_PROG_CXX AC_PROG_CXX
# Speed the compilation up. # Speed up compiling times.
if test "$GXX" = yes; then if test "$GXX" = yes; then
CXXFLAGS="$CXXFLAGS -pipe" CXXFLAGS="$CXXFLAGS -pipe"
fi fi
# C++ compiler flags for tests. # C++ compiler flags for tests.
AC_ARG_VAR([TESTS_CXXFLAGS]) AC_ARG_VAR([TESTS_CXXFLAGS])
# We want no optimization for the tests (too slow), and a lot of debugging. # We want no optimization for the tests (it slows down compiling
# times), and a lot of debugging.
if test "$GXX" = yes && test -z "$TESTS_CXXFLAGS"; then if test "$GXX" = yes && test -z "$TESTS_CXXFLAGS"; then
TESTS_CXXFLAGS="-O0 -ggdb -Wall -W" TESTS_CXXFLAGS="-O0 -ggdb -Wall -W"
fi fi
# C++ compiler flags for complex tests.
AC_ARG_VAR([TESTS_CXXFLAGS_SPEED])
# We want optimization for complex tests, and keep debugging flags
# (still useful).
if test "$GXX" = yes && test -z "$TESTS_CXXFLAGS_SPEED"; then
TESTS_CXXFLAGS_SPEED="-O3 -DNDEBUG -ggdb -Wall -W"
fi
# C++ compiler flags for tools. # C++ compiler flags for tools.
AC_ARG_VAR([TOOLS_CXXFLAGS]) AC_ARG_VAR([TOOLS_CXXFLAGS])
# On the contrary, we want fast binaries for tools. # On the contrary, we want fast binaries for tools.
if test "$GXX" = yes && test -z "$TOOLS_CXXFLAGS"; then if test "$GXX" = yes && test -z "$TOOLS_CXXFLAGS"; then
TOOLS_CXXFLAGS="-O3 -DNDEBUG -ggdb" TOOLS_CXXFLAGS="-O3 -DNDEBUG -ggdb -Wall -W"
fi fi
......
Markdown is supported
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