[Mlir-commits] [mlir] 93769e8 - [mlir] [test] Include mlir_tools_dir in PATH to fix mlir-reduce
Michał Górny
llvmlistbot at llvm.org
Sun Oct 3 00:27:06 PDT 2021
Author: Michał Górny
Date: 2021-10-03T08:48:59+02:00
New Revision: 93769e81ed2e678dc37cf62044549c8ae090cd08
URL: https://github.com/llvm/llvm-project/commit/93769e81ed2e678dc37cf62044549c8ae090cd08
DIFF: https://github.com/llvm/llvm-project/commit/93769e81ed2e678dc37cf62044549c8ae090cd08.diff
LOG: [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
Added:
Modified:
mlir/test/lit.cfg.py
Removed:
################################################################################
diff --git a/mlir/test/lit.cfg.py b/mlir/test/lit.cfg.py
index 2307192e2d7b..bcb40ccdc10d 100644
--- a/mlir/test/lit.cfg.py
+++ b/mlir/test/lit.cfg.py
@@ -51,6 +51,7 @@
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]
More information about the Mlir-commits
mailing list