llvm-project/compiler-rt/cmake
Robert Underwood 16de50895e honor Python2_EXECUTABLE and Python3_EXECUTABLE when they are passed to cmake
CMake's find_package(Python3) and find_package(Python2) packages have a PYTHON_EXECUTABLE, Python2_EXECUTABLE, and Python3_EXECUTABLE cmake variables which control which version of python is built against.  As far as I can tell, the rest of LLVM honors these variables. This can cause the build process to fail when  if the automatically selected version of Python can't run due to modifications of LD_LIBRARY_PATH when using spack.  The corresponding Spack issue is https://github.com/spack/spack/issues/19908.  The corresponding LLVM issue is 48180

I believe an appropriate fix is to add the variables to the list of PASSTHROUGH_VARIABLES in cmake/Modules/AddCompilerRT.cmake, and this fixed compilation errors for me.

This bug affects distributions like Gentoo and package managers like Spack which allow for combinatorial versioning.

Reviewed By: Meinersbur

Differential Revision: https://reviews.llvm.org/D91536
2020-11-17 17:49:14 -06:00
..
Modules honor Python2_EXECUTABLE and Python3_EXECUTABLE when they are passed to cmake 2020-11-17 17:49:14 -06:00
caches
base-config-ix.cmake [Sanitizers] Remove OpenBSD support (new attempt) 2020-10-20 11:16:09 +01:00
builtin-config-ix.cmake [compiler-rt][AIX] Add CMake support for 32-bit Power builds 2020-09-22 16:08:58 -04:00
config-ix.cmake Reland [lsan] Enable LSAN for Android 2020-11-04 18:00:25 -08:00