about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorkennytm <kennytm@gmail.com>2018-09-07 13:47:22 +0800
committerkennytm <kennytm@gmail.com>2018-09-07 18:13:55 +0800
commit1681b154ee3e88e57c571895ad1eb7d8e1ebe0d8 (patch)
treedee82baceeb360dece8c71fd1d52934fbcd7f33c /src/test/incremental/thinlto
parent776b90cee204ddfdb868d16ef37d571fec9002c8 (diff)
parent62cd02d7fc9b0f830536801cadf4484488bd802d (diff)
downloadrust-1681b154ee3e88e57c571895ad1eb7d8e1ebe0d8.tar.gz
rust-1681b154ee3e88e57c571895ad1eb7d8e1ebe0d8.zip
Rollup merge of #53967 - froydnj:cmake-python-executable, r=alexcrichton
propagate build.python into cmake

If a suitable value of Python is not on `PATH`, one can still invoke x.py
manually, which propagates `BOOTSTRAP_PYTHON` into the bootstrap
environment.  But building LLVM will abort with error messages about not
being able to find Python, and instructions to set `PYTHON_EXECUTABLE`,
because nothing is done with `BOOTSTRAP_PYTHON` when invoking cmake.
Setting `build.python` in config.toml had no effect in this scenario,
either

To fix this, let's provide `PYTHON_EXECUTABLE` when invoking cmake; for
the "normal" case of Python in `PATH`, this doesn't alter any behavior.
For more unusual cases, however, this ensures cmake finds Python
properly.  (This change also ensures there are no differences between
what bootstrap is using, and what cmake uses, which may be useful for
consistency's sake.)
Diffstat (limited to 'src/test/incremental/thinlto')
0 files changed, 0 insertions, 0 deletions