diff mbox series

[1/3] classes/toolchain/clang: compiler-rt and libcxx are not target-specific

Message ID 20250728155554.2624191-1-ross.burton@arm.com
State New
Headers show
Series [1/3] classes/toolchain/clang: compiler-rt and libcxx are not target-specific | expand

Commit Message

Ross Burton July 28, 2025, 3:55 p.m. UTC
This file can be used for nativesdk builds, which if they are using the
clang toolchain will also need compiler-rt and libcxx.

Signed-off-by: Ross Burton <ross.burton@arm.com>
---
 meta/classes/toolchain/clang.bbclass | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Mathieu Dubois-Briand July 29, 2025, 8:20 a.m. UTC | #1
On Mon Jul 28, 2025 at 5:55 PM CEST, Ross Burton via lists.openembedded.org wrote:
> This file can be used for nativesdk builds, which if they are using the
> clang toolchain will also need compiler-rt and libcxx.
>
> Signed-off-by: Ross Burton <ross.burton@arm.com>
> ---

Hi Ross,

It looks like this is breaking something:

ERROR: libcxx-20.1.8-r0 do_package: Error executing a python function in exec_func_python() autogenerated:
...
Exception: FileNotFoundError: [Errno 2] No such file or directory: 'x86_64-poky-linux-musl-objdump'

https://autobuilder.yoctoproject.org/valkyrie/#/builders/3/builds/2166
https://autobuilder.yoctoproject.org/valkyrie/#/builders/17/builds/1957
diff mbox series

Patch

diff --git a/meta/classes/toolchain/clang.bbclass b/meta/classes/toolchain/clang.bbclass
index 7c6ed57fb31..00cf6230408 100644
--- a/meta/classes/toolchain/clang.bbclass
+++ b/meta/classes/toolchain/clang.bbclass
@@ -26,8 +26,7 @@  PREFERRED_PROVIDER_virtual/nativesdk-cross-c++:class-crosssdk = "clang-crosssdk-
 PREFERRED_PROVIDER_virtual/nativesdk-cross-cc:class-cross-canadian = "clang-crosssdk-${SDK_SYS}"
 PREFERRED_PROVIDER_virtual/nativesdk-cross-c++:class-cross-canadian = "clang-crosssdk-${SDK_SYS}"
 
-
-BASE_DEFAULT_DEPS:append:class-target = " compiler-rt libcxx"
+BASE_DEFAULT_DEPS:append = " compiler-rt libcxx"
 
 TUNE_CCARGS += "${@bb.utils.contains("DISTRO_FEATURES", "usrmerge", " --dyld-prefix=/usr", "", d)}"