diff --git a/test/lit.cfg b/test/lit.cfg index 0894d9b38ae..ec9fff16c28 100644 --- a/test/lit.cfg +++ b/test/lit.cfg @@ -40,7 +40,7 @@ if llvm_obj_root is not None: config.environment['PATH'] = path llvmgcc_dir = getattr(config, 'llvmgcc_dir', None) - if not llvm_tools_dir: + if not llvmgcc_dir: lit.fatal('No llvm-gcc dir set!') if llvmgcc_dir: path = os.path.pathsep.join((os.path.join(llvmgcc_dir, 'bin'),