Ignore:
Timestamp:
Feb 26, 2011, 11:34:07 AM (9 years ago)
Author:
sam
Message:

Reduce optimisation strength in debug mode.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/configure.ac

    r682 r693  
    5454if test "${enable_debug}" = "yes"; then
    5555  AC_DEFINE(LOL_DEBUG, 1, Define to 1 to activate debug)
    56   OPT="-O0"
     56  OPT="-O"
    5757else
    58   OPT="-O2"
     58  OPT="-O2 --fno-strength-reduce -fomit-frame-pointer"
    5959fi
    6060
     
    7171
    7272# Optimizations
    73 CXXFLAGS="${CXXFLAGS} ${REL} ${OPT} -fno-strength-reduce -fomit-frame-pointer"
     73CXXFLAGS="${CXXFLAGS} ${REL} ${OPT}"
    7474# Code qui fait des warnings == code de porc == deux baffes dans ta gueule
    7575CXXFLAGS="${CXXFLAGS} -Wall -Wextra -Wpointer-arith -Wcast-align -Wcast-qual -Wshadow -Wsign-compare"
Note: See TracChangeset for help on using the changeset viewer.