From 39d003c76e17272d94f4f54d631f944d54fe5979 Mon Sep 17 00:00:00 2001 From: kcudnik Date: Tue, 10 Aug 2021 22:52:34 +0200 Subject: [PATCH] Add check for configure conflict code-coverage/enable-debug --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index 6c6093ce8fa8..85a3d3b1ee9e 100644 --- a/configure.ac +++ b/configure.ac @@ -29,6 +29,10 @@ AM_CONDITIONAL(DEBUG, test x$debug = xtrue) AM_COND_IF([DEBUG], AC_SUBST(DBGFLAGS, "-ggdb -DDEBUG"), AC_SUBST(DBGFLAGS, "-g")) +AM_COND_IF([DEBUG], + [AM_COND_IF([CODE_COVERAGE_ENABLED], + AC_MSG_ERROR("Flag conflict --enable-debug 'DEBUG' and --enable-code-coverage 'NDEBUG'"))]) + AC_ARG_WITH(sai, [ --with-sai=vs compiling against specific SAI], [case "${withval}" in