build-llvm: Stop setting Python3_EXECUTABLE
This is the build host python, run during the build/install, not to be run on the target device. LLVM's build system itself detects the python to use for that and overwrites the Python3_EXECUTABLE variable anyway, so it's value isn't currently used.
This commit is contained in:
1 parent
7e7344281d
commit
9eac155de2
1 file changed
-4
@@ -165,14 +165,10 @@ if [ -n "$HOST" ]; then
|
||||
if [ -n "$WITH_PYTHON" ]; then
|
||||
PYTHON_VER="3.9"
|
||||
CMAKEFLAGS="$CMAKEFLAGS -DLLDB_ENABLE_PYTHON=ON"
|
||||
[ -z "$PYTHON_EXEC" ] && command -v python$PYTHON_VER && PYTHON_EXEC=python$PYTHON_VER
|
||||
[ -z "$PYTHON_EXEC" ] && command -v python3 && PYTHON_EXEC=python3
|
||||
[ -z "$PYTHON_EXEC" ] && command -v python && PYTHON_EXEC=python
|
||||
CMAKEFLAGS="$CMAKEFLAGS -DPYTHON_HOME=$PREFIX/python"
|
||||
CMAKEFLAGS="$CMAKEFLAGS -DLLDB_PYTHON_HOME=../python"
|
||||
CMAKEFLAGS="$CMAKEFLAGS -DLLDB_PYTHON_RELATIVE_PATH=python/lib/python$PYTHON_VER/site-packages"
|
||||
|
||||
CMAKEFLAGS="$CMAKEFLAGS -DPython3_EXECUTABLE=$PYTHON_EXEC"
|
||||
CMAKEFLAGS="$CMAKEFLAGS -DPython3_INCLUDE_DIRS=$PREFIX/python/include/python$PYTHON_VER"
|
||||
CMAKEFLAGS="$CMAKEFLAGS -DPython3_LIBRARIES=$PREFIX/python/lib/libpython$PYTHON_VER.dll.a"
|
||||
fi
|
||||
|
||||
Reference in new issue
Block a user