Skip to content

Commit 8c212a3

Browse files
authored
[mlir][python] allow passing in PYTHONPATH to lit tests (#89296)
1 parent 23d88a8 commit 8c212a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

mlir/test/lit.cfg.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,7 @@ def add_runtime(name):
204204
# binaries come from the build tree. This should be unified to the build tree
205205
# by copying/linking sources to build.
206206
if config.enable_bindings_python:
207+
config.environment["PYTHONPATH"] = os.getenv("MLIR_LIT_PYTHONPATH", "")
207208
llvm_config.with_environment(
208209
"PYTHONPATH",
209210
[

0 commit comments

Comments
 (0)