From f09586e588eb7784c83c3bd6bc028137b25df13d Mon Sep 17 00:00:00 2001 From: Martin Jansa Date: Fri, 13 Sep 2019 10:26:50 +0000 Subject: clang: make sure python3 is used for native builds * with /usr/bin/python -> python2.7 on the host, I was seeing: CMake Error at work-shared/llvm-project-source-9.0.0-r0/git/lldb/cmake/modules/LLDBConfig.cmake:229 (message): Found incompatible Python interpreter (2.7) and Python libraries (3.7) Call Stack (most recent call first): work-shared/llvm-project-source-9.0.0-r0/git/lldb/CMakeLists.txt:20 (include) Signed-off-by: Martin Jansa Signed-off-by: Khem Raj --- recipes-devtools/clang/clang_git.bb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/recipes-devtools/clang/clang_git.bb b/recipes-devtools/clang/clang_git.bb index 8719b49..4182921 100644 --- a/recipes-devtools/clang/clang_git.bb +++ b/recipes-devtools/clang/clang_git.bb @@ -17,7 +17,7 @@ BUILD_RANLIB_class-nativesdk = "llvm-ranlib" BUILD_NM_class-nativesdk = "llvm-nm" LDFLAGS_append_class-nativesdk = " -fuse-ld=gold" -inherit cmake cmake-native python3-dir +inherit cmake cmake-native python3-dir python3native OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM = "BOTH" @@ -102,6 +102,7 @@ EXTRA_OECMAKE_append_class-native = "\ -DBOOTSTRAP_LLVM_ENABLE_LLD=ON \ -DLLVM_TARGETS_TO_BUILD='${LLVM_TARGETS_TO_BUILD}' \ -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD='${LLVM_EXPERIMENTAL_TARGETS_TO_BUILD}' \ + -DPYTHON_EXECUTABLE='${PYTHON}' \ " EXTRA_OECMAKE_append_class-nativesdk = "\ -DCMAKE_CROSSCOMPILING:BOOL=ON \ -- cgit v1.2.3-54-g00ecf