From 4ffa7926e53e1924a745e1cae5e9bdb969d3e29b Mon Sep 17 00:00:00 2001 From: Anton Alkin Date: Mon, 14 Feb 2022 10:37:16 +0100 Subject: [PATCH] always use DEBUG for O2 and O2Physics --- o2.sh | 2 +- o2physics.sh | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/o2.sh b/o2.sh index 2fd964792a..d9b9bff901 100644 --- a/o2.sh +++ b/o2.sh @@ -136,7 +136,7 @@ valid_defaults: --- #!/bin/sh export ROOTSYS=$ROOT_ROOT - +CMAKE_BUILD_TYPE=DEBUG # Making sure people do not have SIMPATH set when they build fairroot. # Unfortunately SIMPATH seems to be hardcoded in a bunch of places in # fairroot, so this really should be cleaned up in FairRoot itself for diff --git a/o2physics.sh b/o2physics.sh index e7fa5a10d3..fbe259a1bc 100644 --- a/o2physics.sh +++ b/o2physics.sh @@ -18,6 +18,11 @@ incremental_recipe: | mkdir -p $INSTALLROOT/etc/modulefiles && rsync -a --delete etc/modulefiles/ $INSTALLROOT/etc/modulefiles --- #!/bin/sh +CMAKE_BUILD_TYPE=DEBUG +if [[ $ALIBUILD_O2PHYSICS_TESTS ]]; then + # Impose extra errors. + CXXFLAGS="${CXXFLAGS} -Werror -Wno-error=deprecated-declarations" +fi # When O2 is built against Gandiva (from Arrow), then we need to use # -DLLVM_ROOT=$CLANG_ROOT, since O2's CMake calls into Gandiva's