From e1fc416de8e345de91f82334e3742e278d4cc692 Mon Sep 17 00:00:00 2001
From: Walter Lampl <Walter.Lampl@cern.ch>
Date: Fri, 21 Aug 2020 12:44:20 +0200
Subject: [PATCH] AppMgr.py: Set env var to silence cppyy warning about PCH

---
 Control/AthenaCommon/python/AppMgr.py | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/Control/AthenaCommon/python/AppMgr.py b/Control/AthenaCommon/python/AppMgr.py
index 707da3f158cc..6ef4fd5ede17 100755
--- a/Control/AthenaCommon/python/AppMgr.py
+++ b/Control/AthenaCommon/python/AppMgr.py
@@ -651,6 +651,8 @@ class AthAppMgr( AppMgr ):
       # Touch these types early, before dictionaries are loaded,
       # to prevent spurious error messages from ROOT.
       # See ATLASRECTS-3486.
+      from os import environ
+      environ['CLING_STANDARD_PCH'] = 'none' #See bug ROOT-10789
       import cppyy
       getattr(cppyy.gbl, 'vector<bool>')
       getattr(cppyy.gbl, 'vector<float>')
-- 
GitLab