<div dir="ltr"><div>I haven't tried this so I don't know if it will actually work but maybe you can try messing around with the lit.cfg file in those directories. For example:</div><div><br></div><div>import getpass<br></div><div>if getpass.getuser() == "root":</div><div>   config.excludes = [thinlto-emit-imports.ll, thinlto-cant-write-index.ll]</div><div><br></div><div>Or however you want to get the user name, that was first thing that showed up when I searched. Also maybe you need to append to config.excludes? I see it assigned to in llvm/test/<a href="http://lit.cfg.py">lit.cfg.py</a>.</div><div><br></div><div>Hopefully that works!</div></div>