diff options
author | Keith Smiley <keithbsmiley@gmail.com> | 2024-03-28 19:07:22 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-28 19:07:22 -0700 |
commit | 89bae852dddeb2b66a1843dbe5eea21184e54814 (patch) | |
tree | 82db172ee729f2c4aea2fc0b565d509b078693a5 /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 39e813746730a83e49b7efc457ff7efc74925c74 (diff) | |
download | llvm-89bae852dddeb2b66a1843dbe5eea21184e54814.zip llvm-89bae852dddeb2b66a1843dbe5eea21184e54814.tar.gz llvm-89bae852dddeb2b66a1843dbe5eea21184e54814.tar.bz2 |
[bazel] Fix lit tests with python 3.11+ (#87022)
In python3.11 there is a new environment variable PYTHONSAFEPATH which
stops python from setting the current directory as the first entry in
sys.path. Bazel started setting this to ensure that python targets
don't accidentally access things that aren't in their dependency tree.
This resulted in lit tests breaking because sys.path didn't include the
directory to the lit source files. This is fixed by adding the lit
binary to the dependency tree and propagating the import path from it.
Fixes https://github.com/llvm/llvm-project/issues/75963
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions