diff --git a/SConstruct b/SConstruct index 2e525a3407..6abbb51e00 100755 --- a/SConstruct +++ b/SConstruct @@ -609,9 +609,9 @@ for variant_path in variant_paths: if not GetOption('without_tcmalloc'): with gem5_scons.Configure(env) as conf: - if conf.CheckLib('tcmalloc'): + if conf.CheckLib('tcmalloc_minimal'): conf.env.Append(CCFLAGS=conf.env['TCMALLOC_CCFLAGS']) - elif conf.CheckLib('tcmalloc_minimal'): + elif conf.CheckLib('tcmalloc'): conf.env.Append(CCFLAGS=conf.env['TCMALLOC_CCFLAGS']) else: warning("You can get a 12% performance improvement by "