From: Benjamin Kramer Date: Fri, 26 May 2023 11:57:09 +0000 (+0200) Subject: [mlir] Make sure mlir-opt is in the list of substituted tools X-Git-Tag: upstream/17.0.6~7070 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=00480189847e89e10f6333c28d65377906316c0f;p=platform%2Fupstream%2Fllvm.git [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. --- diff --git a/mlir/test/lit.cfg.py b/mlir/test/lit.cfg.py index ad0b0d5..8f18fc6 100644 --- a/mlir/test/lit.cfg.py +++ b/mlir/test/lit.cfg.py @@ -154,6 +154,8 @@ if "MLIR_OPT_CHECK_IR_ROUNDTRIP" in os.environ: ToolSubst("mlir-opt", "mlir-opt --verify-roundtrip", unresolved="fatal"), ] ) +else: + tools.extend(["mlir-opt"]) llvm_config.add_tool_substitutions(tools, tool_dirs)