From 5417c9b91dce2afc5bdc94b37cd29ad120ab508a Mon Sep 17 00:00:00 2001 From: Zoltán Böszörményi Date: Fri, 12 Feb 2021 23:58:30 -0500 Subject: llvm-project-source: Add patch to make libclc explicitly use python3 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Zoltán Böszörményi --- ...Fix-libclc-to-look-for-python3-explicitly.patch | 29 ++++++++++++++++++++++ recipes-devtools/clang/common.inc | 1 + 2 files changed, 30 insertions(+) create mode 100644 recipes-devtools/clang/clang/0001-Fix-libclc-to-look-for-python3-explicitly.patch diff --git a/recipes-devtools/clang/clang/0001-Fix-libclc-to-look-for-python3-explicitly.patch b/recipes-devtools/clang/clang/0001-Fix-libclc-to-look-for-python3-explicitly.patch new file mode 100644 index 0000000..5619944 --- /dev/null +++ b/recipes-devtools/clang/clang/0001-Fix-libclc-to-look-for-python3-explicitly.patch @@ -0,0 +1,29 @@ +From 419d8e0602401c813fc5a87b6c593ac0598a445f Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Zolt=C3=A1n=20B=C3=B6sz=C3=B6rm=C3=A9nyi?= +Date: Fri, 12 Feb 2021 23:56:04 -0500 +Subject: [PATCH] Fix libclc to look for python3 explicitly +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Signed-off-by: Zoltán Böszörményi +--- + libclc/CMakeLists.txt | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/libclc/CMakeLists.txt b/libclc/CMakeLists.txt +index 9472f19..a7908c8 100644 +--- a/libclc/CMakeLists.txt ++++ b/libclc/CMakeLists.txt +@@ -170,7 +170,7 @@ if( ENABLE_RUNTIME_SUBNORMAL ) + DESTINATION ${CMAKE_INSTALL_DATADIR}/clc ) + endif() + +-find_program( PYTHON python ) ++find_program( PYTHON python3 ) + file( TO_CMAKE_PATH ${CMAKE_SOURCE_DIR}/generic/lib/gen_convert.py script_loc ) + add_custom_command( + OUTPUT convert.cl +-- +1.8.3.1 + diff --git a/recipes-devtools/clang/common.inc b/recipes-devtools/clang/common.inc index 8989904..afcfa96 100644 --- a/recipes-devtools/clang/common.inc +++ b/recipes-devtools/clang/common.inc @@ -36,6 +36,7 @@ SRC_URI = "\ file://0026-clang-Use-python3-in-python-scripts.patch \ file://0027-For-x86_64-set-Yocto-based-GCC-install-search-path.patch \ file://D95527_against_11.x.patch \ + file://0001-Fix-libclc-to-look-for-python3-explicitly.patch \ " # Fallback to no-PIE if not set -- cgit v1.2.3-54-g00ecf