Skip to content

Commit c91220e

Browse files
author
git apple-llvm automerger
committed
Merge commit '7493642208b1' from apple/stable/20190619 into swift/master
2 parents 2d89e35 + 7493642 commit c91220e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

llvm/utils/lit/tests/lit.cfg

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ else:
3737

3838
# Required because some tests import the lit module
3939
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'
4044

4145
# Add llvm and lit tools directories if this config is being loaded indirectly.
4246
for attribute in ('llvm_tools_dir', 'lit_tools_dir'):

0 commit comments

Comments
 (0)