File tree 1 file changed +7
-5
lines changed 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -234,7 +234,7 @@ AC_ARG_ENABLE(assertions,
234
234
[ case "${enableval}" in
235
235
yes) assertions=true ;;
236
236
no) assertions=false ;;
237
- *) AC_MSG_ERROR ( bad value ${enableval} for -- enable-asserions ) ;;
237
+ *) AC_MSG_ERROR ( bad value ${enableval} for -- enable-assertions ) ;;
238
238
esac] ,
239
239
240
240
[ assertions=false]
@@ -369,10 +369,12 @@ if test "$aflFuzzer" == "true"; then
369
369
$buildExamples = false
370
370
fi
371
371
372
- if test "$assertions" == "false"; then
373
- ASSERTIONS_CPPCFLAGS="-DNDEBUG"
374
- GLOBAL_CPPFLAGS="$GLOBAL_CPPFLAGS $ASSERTIONS_CPPCFLAGS"
375
- fi
372
+ case $assertions in
373
+ false) ASSERTIONS_CPPCFLAGS="-DNDEBUG" ;;
374
+ true) ASSERTIONS_CPPCFLAGS="-UNDEBUG" ;;
375
+ *) AC_MSG_ERROR ( bad value ${assertions} for assertions ) ;;
376
+ esac
377
+ GLOBAL_CPPFLAGS="$GLOBAL_CPPFLAGS $ASSERTIONS_CPPCFLAGS"
376
378
377
379
AC_SUBST ( GLOBAL_LDADD )
378
380
AC_SUBST ( GLOBAL_CPPFLAGS )
You can’t perform that action at this time.
0 commit comments