diff --git a/lld/test/lit.site.cfg.py.in b/lld/test/lit.site.cfg.py.in index 764ab83fbcf2..c5fc695131d4 100644 --- a/lld/test/lit.site.cfg.py.in +++ b/lld/test/lit.site.cfg.py.in @@ -25,7 +25,8 @@ except KeyError as e: key, = e.args lit_config.fatal("unable to find %r parameter, use '--param=%s=VALUE'" % (key,key)) -@LIT_SITE_CFG_IN_FOOTER@ +import lit +lit.llvm.initialize(lit_config, config) # Let the main config do the real work. lit_config.load_config(config, "@LLD_SOURCE_DIR@/test/lit.cfg.py")