diff options
| author | Luohao Wang <luohaothu@live.com> | 2025-01-16 10:28:43 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-16 11:28:43 +0900 |
| commit | f79bacb485bfb2d12bc0a223cc35d2e5fb75fbf7 (patch) | |
| tree | e9f39b021e49d9326c70ddbbe6b939ccad8b6a7b | |
| parent | 731db2a03e096fe42196f0ae6531179b998b0bf8 (diff) | |
| download | llvm-f79bacb485bfb2d12bc0a223cc35d2e5fb75fbf7.zip llvm-f79bacb485bfb2d12bc0a223cc35d2e5fb75fbf7.tar.gz llvm-f79bacb485bfb2d12bc0a223cc35d2e5fb75fbf7.tar.bz2 | |
[mlir] [Python] Fix misused `lldb_build_directory` in MLIR's test script (#122596)
Related to #121288
This PR fixes the miscopied `config.lldb_build_directory` variable in
`lit.cfg.py` inside MLIR's test suit. `config.mlir_obj_root` is used as
a replacement for the copied python executable's directory.
**PS**: Since this is a common work-around on macOS, should we promote
it as a utility across projects?
Co-authored-by: Luohao Wang <Luohaothu@users.noreply.github.com>
Co-authored-by: Kai Sasaki <lewuathe@gmail.com>
| -rw-r--r-- | mlir/test/lit.cfg.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mlir/test/lit.cfg.py b/mlir/test/lit.cfg.py index f162f9a..c286231 100644 --- a/mlir/test/lit.cfg.py +++ b/mlir/test/lit.cfg.py @@ -106,7 +106,7 @@ def find_real_python_interpreter(): if sys.prefix != sys.base_prefix: copied_python = os.path.join(sys.prefix, "bin", "copied-python") else: - copied_python = os.path.join(config.lldb_build_directory, "copied-python") + copied_python = os.path.join(config.mlir_obj_root, "copied-python") # Avoid doing any work if we already copied the binary. if os.path.isfile(copied_python): |
