[Mlir-commits] [mlir] 0048018 - [mlir] Make sure mlir-opt is in the list of substituted tools
Benjamin Kramer
llvmlistbot at llvm.org
Fri May 26 05:00:53 PDT 2023
Author: Benjamin Kramer
Date: 2023-05-26T14:00:34+02:00
New Revision: 00480189847e89e10f6333c28d65377906316c0f
URL: https://github.com/llvm/llvm-project/commit/00480189847e89e10f6333c28d65377906316c0f
DIFF: https://github.com/llvm/llvm-project/commit/00480189847e89e10f6333c28d65377906316c0f.diff
LOG: [mlir] Make sure mlir-opt is in the list of substituted tools
otherwise it gets picked up from $PATH, which is not always working
properly.
Added:
Modified:
mlir/test/lit.cfg.py
Removed:
################################################################################
diff --git a/mlir/test/lit.cfg.py b/mlir/test/lit.cfg.py
index ad0b0d556777..8f18fc601532 100644
--- a/mlir/test/lit.cfg.py
+++ b/mlir/test/lit.cfg.py
@@ -154,6 +154,8 @@ def add_runtime(name):
ToolSubst("mlir-opt", "mlir-opt --verify-roundtrip", unresolved="fatal"),
]
)
+else:
+ tools.extend(["mlir-opt"])
llvm_config.add_tool_substitutions(tools, tool_dirs)
More information about the Mlir-commits
mailing list