Changeset 39 for sources


Ignore:
Timestamp:
Jul 21, 2009, 3:29:22 PM (15 years ago)
Author:
buchmann
Message:

Default:

  • Disable debug and runtime compilation
  • Enable optimizations (-O2 and -DNDEBUG).
File:
1 edited

Legend:

Unmodified
Added
Removed
  • sources/configure.ac

    r34 r39  
    2626                                                   [do_$1=${enableval}],
    2727                                                   [do_$1=$3])
    28              AS_IF([test x${do_$1} != xno],
     28             AS_IF([test x${do_$1} != "xno"],
    2929                         AC_DEFINE(m4_toupper([CONFIG_$1]), [], [$2]),
    3030                         )])
     
    3434MY_ARG_ENABLE(check_multiwriting2register, [Report if unconnected signal is written twice], [no])
    3535MY_ARG_ENABLE(debug, [Enable debugging], [no])
     36
    3637MY_ARG_ENABLE(default_runtime_compilation, [Compile scheduling code], [no])
    3738
    3839# Also set -DNDEBUG when not debugging, this disables assert()s
    39 AS_IF([test "x$do_debug" != xyes],
    40 CXXFLAGS="-DNDEBUG")
     40AS_IF([test "x$do_debug"  = "xyes"], [CXXFLAGS="-g"         ],
     41      [test "x$do_debug" != "xyes"], [CXXFLAGS="-O2 -NDEBUG"])
    4142
    4243case $target_os in
Note: See TracChangeset for help on using the changeset viewer.