From 74cdbf5f7a3fee1d3605846682e54ab40cd9558c Mon Sep 17 00:00:00 2001 From: Daniel Weindl Date: Mon, 21 Nov 2022 09:35:04 +0100 Subject: [PATCH] -Werror in debug mode --- python/sdist/amici/setuptools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/sdist/amici/setuptools.py b/python/sdist/amici/setuptools.py index 7cfcf61fe1..c6dcb5bc44 100644 --- a/python/sdist/amici/setuptools.py +++ b/python/sdist/amici/setuptools.py @@ -213,7 +213,7 @@ def add_debug_flags_if_required(cxx_flags: List[str], and os.environ['ENABLE_AMICI_DEBUGGING'] == 'TRUE': print("ENABLE_AMICI_DEBUGGING was set to TRUE." " Building AMICI with debug symbols.") - cxx_flags.extend(['-g', '-O0', '-UNDEBUG']) + cxx_flags.extend(['-g', '-O0', '-UNDEBUG', '-Werror']) linker_flags.extend(['-g'])