From e6b4a73d056b1299bec9768e9c5eacdf789630e7 Mon Sep 17 00:00:00 2001 From: klendathu2k Date: Wed, 15 May 2024 09:29:49 -0400 Subject: [PATCH] Apply the NODEBUG environment variable. --- mgr/config/v0.3.0-rhel7-root6.24.06.config | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/mgr/config/v0.3.0-rhel7-root6.24.06.config b/mgr/config/v0.3.0-rhel7-root6.24.06.config index ad720672530..d52ad500f5c 100644 --- a/mgr/config/v0.3.0-rhel7-root6.24.06.config +++ b/mgr/config/v0.3.0-rhel7-root6.24.06.config @@ -16,9 +16,18 @@ endif module load star-env-0.3.0-root-6.24.06 if ( $USE_64BITS == 1 ) then - module load geant4-10.5.1 - module load geant4-data-10.5.1 - module load geant4-vmc-5-0-p5-root-6.24.06 - module load geant3-3-9-p1-root-6.24.06 - module load clhep-2.4.5.1 + module load clhep-2.4.5.1 + module load geant4-data-10.5.1 + # If NODEBUG is not set, load debug versions, otherwise, optimized + if (! $?NODEBUG) then + module load geant4-10.5.1-debug + module load geant4-vmc-5-0-p5-root-6.24.06-debug + module load geant3-3-9-p1-root-6.24.06-debug + module load vmc-1-0-p3-root-6.24.06-debug + else + module load geant4-10.5.1 + module load geant4-vmc-5-0-p5-root-6.24.06 + module load geant3-3-9-p1-root-6.24.06 + module load vmc-1-0-p3-root-6.24.06 + endif endif