From 0034f32d6d85d7f21cf04c82083860cdb2fe1ddb Mon Sep 17 00:00:00 2001 From: Yann Herklotz Date: Mon, 26 Sep 2022 19:08:01 +0100 Subject: Update MLIR files and include LLVM directory --- test/lit.cfg.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'test/lit.cfg.py') diff --git a/test/lit.cfg.py b/test/lit.cfg.py index 9fb5b54..a6a3d24 100644 --- a/test/lit.cfg.py +++ b/test/lit.cfg.py @@ -30,7 +30,6 @@ config.test_source_root = os.path.dirname(__file__) config.test_exec_root = os.path.join(config.standalone_obj_root, 'test') config.substitutions.append(('%PATH%', config.environment['PATH'])) -config.substitutions.append(('%shlibext', config.llvm_shlib_ext)) llvm_config.with_system_environment( ['HOME', 'INCLUDE', 'LIB', 'TMP', 'TEMP']) @@ -42,9 +41,6 @@ llvm_config.use_default_substitutions() # directories. config.excludes = ['Inputs', 'Examples', 'CMakeLists.txt', 'README.txt', 'LICENSE.txt'] -# test_source_root: The root path where tests are located. -config.test_source_root = os.path.dirname(__file__) - # test_exec_root: The root path where tests should be run. config.test_exec_root = os.path.join(config.standalone_obj_root, 'test') config.standalone_tools_dir = os.path.join(config.standalone_obj_root, 'bin') @@ -54,8 +50,13 @@ llvm_config.with_environment('PATH', config.llvm_tools_dir, append_path=True) tool_dirs = [config.standalone_tools_dir, config.llvm_tools_dir] tools = [ + 'standalone-capi-test', 'standalone-opt', - 'standalone-translate' + 'standalone-translate', ] llvm_config.add_tool_substitutions(tools, tool_dirs) + +llvm_config.with_environment('PYTHONPATH', [ + os.path.join(config.mlir_obj_dir, 'python_packages', 'standalone'), +], append_path=True) -- cgit