From 1c0c71b2626787465c3a1b9baf1d4b98c3e411d0 Mon Sep 17 00:00:00 2001 From: Frank Winklmeier <frank.winklmeier@cern.ch> Date: Tue, 13 Nov 2018 13:22:54 +0100 Subject: [PATCH] AthOptionsParser: Fix bug when checking for tcmalloc preload USETCMALLOC[MINIMAL] is set to '1' and not 'true' in case it is being used as a preload. Former-commit-id: 90966555ee1c345ccf31b203eb90cd04924dd5b4 --- Control/AthenaCommon/python/AthOptionsParser.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Control/AthenaCommon/python/AthOptionsParser.py b/Control/AthenaCommon/python/AthOptionsParser.py index 3583c9500cb..74a5b23bce8 100644 --- a/Control/AthenaCommon/python/AthOptionsParser.py +++ b/Control/AthenaCommon/python/AthOptionsParser.py @@ -1,4 +1,4 @@ -# Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration +# Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration # @file AthenaCommon.AthOptionsParser # @purpose the central module to parse command line options of athena.py @@ -168,13 +168,13 @@ def parse(chk_tcmalloc=True): warn_tcmalloc = False libname='libtcmalloc.so' using_minimaltcmalloc=False - if os.getenv('USETCMALLOCMINIMAL') == 'true': + if os.getenv('USETCMALLOCMINIMAL') == '1': libname='libtcmalloc_minimal.so' using_minimaltcmalloc=True if ldpreload.find(libname) == -1: using_tcmalloc = False - if (os.getenv('USETCMALLOC') == 'true' or + if (os.getenv('USETCMALLOC') == '1' or os.getenv('USETCMALLOC') == None): warn_tcmalloc = True for arg in sys.argv[1:]: -- GitLab