We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4d31871 + 617aae3 commit 7493642Copy full SHA for 7493642
llvm/utils/lit/tests/lit.cfg
@@ -37,6 +37,10 @@ else:
37
38
# Required because some tests import the lit module
39
llvm_config.with_environment('PYTHONPATH', lit_path, append_path=True)
40
+# Do not add user-site packages directory to the python search path. This avoids test failures if there's an
41
+# incompatible lit module installed inside the user-site packages directory, as it gets prioritized over the lit
42
+# from the PYTHONPATH.
43
+config.environment['PYTHONNOUSERSITE'] = '1'
44
45
# Add llvm and lit tools directories if this config is being loaded indirectly.
46
for attribute in ('llvm_tools_dir', 'lit_tools_dir'):
0 commit comments