From c1880494a984ed582e873bbf24fc5f1c000d0bc9 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 29 Jul 2025 21:38:09 -0700 Subject: [PATCH] libclc: Point to native prepare_builtins binary for target and nativesdk This is not needed for native version This will be in utils/ directory starting with clang-22 Signed-off-by: Khem Raj Signed-off-by: Mathieu Dubois-Briand Signed-off-by: Richard Purdie --- meta/recipes-devtools/clang/libclc_git.bb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/meta/recipes-devtools/clang/libclc_git.bb b/meta/recipes-devtools/clang/libclc_git.bb index ed31de503a..04b76c55d2 100644 --- a/meta/recipes-devtools/clang/libclc_git.bb +++ b/meta/recipes-devtools/clang/libclc_git.bb @@ -21,8 +21,9 @@ B_NATIVE = "${B}-native" # Semicolon-separated list of targets to build LIBCLC_TARGETS ?= "all" -EXTRA_OECMAKE = "-DLIBCLC_TARGETS_TO_BUILD=${LIBCLC_TARGETS} \ - -DPREPARE_BUILTINS=${B_NATIVE}/prepare_builtins" +EXTRA_OECMAKE = "-DLIBCLC_TARGETS_TO_BUILD=${LIBCLC_TARGETS}" +EXTRA_OECMAKE:append:class-target = " -DPREPARE_BUILTINS=${B_NATIVE}/prepare_builtins" +EXTRA_OECMAKE:append:class-nativesdk = " -DPREPARE_BUILTINS=${B_NATIVE}/prepare_builtins" # Need to build a native prepare_builtins binary in target builds. The easiest # way to do this is with a second native cmake build tree. -- 2.47.2