about summary refs log tree commit diff
path: root/src/test/incremental/thinlto
diff options
context:
space:
mode:
authorNathan Froyd <froydnj@gmail.com>2018-09-05 11:43:48 -0400
committerNathan Froyd <froydnj@gmail.com>2018-09-05 11:43:48 -0400
commit62cd02d7fc9b0f830536801cadf4484488bd802d (patch)
treef3eadfef67452128b9a69b8c43ec12e2aff8d29d /src/test/incremental/thinlto
parentb0297f3043e4ed592c63c0bcc11df3655ec8cf46 (diff)
downloadrust-62cd02d7fc9b0f830536801cadf4484488bd802d.tar.gz
rust-62cd02d7fc9b0f830536801cadf4484488bd802d.zip
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