Skip to content

Commit f79bacb

Browse files
LuohaothuLewuathe
andauthored
[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>
1 parent 731db2a commit f79bacb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mlir/test/lit.cfg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ def find_real_python_interpreter():
106106
if sys.prefix != sys.base_prefix:
107107
copied_python = os.path.join(sys.prefix, "bin", "copied-python")
108108
else:
109-
copied_python = os.path.join(config.lldb_build_directory, "copied-python")
109+
copied_python = os.path.join(config.mlir_obj_root, "copied-python")
110110

111111
# Avoid doing any work if we already copied the binary.
112112
if os.path.isfile(copied_python):

0 commit comments

Comments
 (0)