From 93769e81ed2e678dc37cf62044549c8ae090cd08 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Micha=C5=82=20G=C3=B3rny?= Date: Sat, 2 Oct 2021 11:59:15 +0200 Subject: [PATCH] [mlir] [test] Include mlir_tools_dir in PATH to fix mlir-reduce Include mlir_tools_dir in the PATH used in test environment, as otherwise mlir-reduce is unable to find mlir-opt when building standalone (and hence mlir_tools_dir != llvm_tools_dir). Differential Revision: https://reviews.llvm.org/D110992 --- mlir/test/lit.cfg.py | 1 + 1 file changed, 1 insertion(+) diff --git a/mlir/test/lit.cfg.py b/mlir/test/lit.cfg.py index 2307192..bcb40cc 100644 --- a/mlir/test/lit.cfg.py +++ b/mlir/test/lit.cfg.py @@ -51,6 +51,7 @@ config.test_source_root = os.path.dirname(__file__) config.test_exec_root = os.path.join(config.mlir_obj_root, 'test') # Tweak the PATH to include the tools dir. +llvm_config.with_environment('PATH', config.mlir_tools_dir, append_path=True) llvm_config.with_environment('PATH', config.llvm_tools_dir, append_path=True) tool_dirs = [config.mlir_tools_dir, config.llvm_tools_dir] -- 2.7.4