diff options
author | Martin Jansa <martin.jansa@gmail.com> | 2019-09-13 10:26:50 +0000 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2019-09-14 00:47:23 -0700 |
commit | f09586e588eb7784c83c3bd6bc028137b25df13d (patch) | |
tree | 8bf515434a1392b47f50949d5f96cb46c6852f8c /recipes-devtools/clang/clang_git.bb | |
parent | 7bd19bdff2922092b44ba697594189dd414ccdd6 (diff) | |
download | meta-clang-f09586e588eb7784c83c3bd6bc028137b25df13d.tar.gz |
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 <Martin.Jansa@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'recipes-devtools/clang/clang_git.bb')
-rw-r--r-- | recipes-devtools/clang/clang_git.bb | 3 |
1 files changed, 2 insertions, 1 deletions
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" | |||
17 | BUILD_NM_class-nativesdk = "llvm-nm" | 17 | BUILD_NM_class-nativesdk = "llvm-nm" |
18 | LDFLAGS_append_class-nativesdk = " -fuse-ld=gold" | 18 | LDFLAGS_append_class-nativesdk = " -fuse-ld=gold" |
19 | 19 | ||
20 | inherit cmake cmake-native python3-dir | 20 | inherit cmake cmake-native python3-dir python3native |
21 | 21 | ||
22 | OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM = "BOTH" | 22 | OECMAKE_FIND_ROOT_PATH_MODE_PROGRAM = "BOTH" |
23 | 23 | ||
@@ -102,6 +102,7 @@ EXTRA_OECMAKE_append_class-native = "\ | |||
102 | -DBOOTSTRAP_LLVM_ENABLE_LLD=ON \ | 102 | -DBOOTSTRAP_LLVM_ENABLE_LLD=ON \ |
103 | -DLLVM_TARGETS_TO_BUILD='${LLVM_TARGETS_TO_BUILD}' \ | 103 | -DLLVM_TARGETS_TO_BUILD='${LLVM_TARGETS_TO_BUILD}' \ |
104 | -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD='${LLVM_EXPERIMENTAL_TARGETS_TO_BUILD}' \ | 104 | -DLLVM_EXPERIMENTAL_TARGETS_TO_BUILD='${LLVM_EXPERIMENTAL_TARGETS_TO_BUILD}' \ |
105 | -DPYTHON_EXECUTABLE='${PYTHON}' \ | ||
105 | " | 106 | " |
106 | EXTRA_OECMAKE_append_class-nativesdk = "\ | 107 | EXTRA_OECMAKE_append_class-nativesdk = "\ |
107 | -DCMAKE_CROSSCOMPILING:BOOL=ON \ | 108 | -DCMAKE_CROSSCOMPILING:BOOL=ON \ |