https://bugs.llvm.org/show_bug.cgi?id=48180

            Bug ID: 48180
           Summary: honor Python2_EXECUTABLE and Python3_EXECUTABLE when
                    they are passed to cmake
           Product: compiler-rt
           Version: 11.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: compiler-rt
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]

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

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

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

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to