diff options
author | Khem Raj <raj.khem@gmail.com> | 2023-06-09 00:05:45 -0700 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-06-09 10:40:54 -0700 |
commit | 7419c1f4e13187311870785a11e8cffee2c640e6 (patch) | |
tree | 1a559a6308a294fcbebf63fcc67f3c92b6cbd1ce /classes/clang.bbclass | |
parent | 9c36f5aaf0c243ec1559cdc13bd9c25917817fa6 (diff) | |
download | meta-clang-7419c1f4e13187311870785a11e8cffee2c640e6.tar.gz |
clang.bbclass: Check for INHIBIT_DEFAULT_DEPS in creating ld->lld symlink
When INHIBIT_DEFAULT_DEPS = "1" then the toolchain is not staged in
Recipe specific native sysroot at all, therefore there is no point of
creating the symlink
Moreover it also fixes build of such recipes when ld-is-lld is set at
distro level
Signed-off-by: Khem Raj <raj.khem@gmail.com>
Diffstat (limited to 'classes/clang.bbclass')
-rw-r--r-- | classes/clang.bbclass | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/classes/clang.bbclass b/classes/clang.bbclass index 23f67ce..fc04d97 100644 --- a/classes/clang.bbclass +++ b/classes/clang.bbclass | |||
@@ -141,7 +141,8 @@ RECIPESYSROOTFUNCS = "" | |||
141 | RECIPESYSROOTFUNCS:toolchain-clang = "recipe_sysroot_check_ld_is_lld" | 141 | RECIPESYSROOTFUNCS:toolchain-clang = "recipe_sysroot_check_ld_is_lld" |
142 | 142 | ||
143 | recipe_sysroot_check_ld_is_lld () { | 143 | recipe_sysroot_check_ld_is_lld () { |
144 | if "${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', 'true', 'false', d)}"; then | 144 | if ${@bb.utils.contains('DISTRO_FEATURES', 'ld-is-lld', 'true', 'false', d)} && \ |
145 | ${@bb.utils.contains('INHIBIT_DEFAULT_DEPS', '1', 'false', 'true', d)}; then | ||
145 | ln -srf ${RECIPE_SYSROOT_NATIVE}${bindir}/${TARGET_SYS}/${TARGET_PREFIX}ld.lld ${RECIPE_SYSROOT_NATIVE}${bindir}/${TARGET_SYS}/${TARGET_PREFIX}ld | 146 | ln -srf ${RECIPE_SYSROOT_NATIVE}${bindir}/${TARGET_SYS}/${TARGET_PREFIX}ld.lld ${RECIPE_SYSROOT_NATIVE}${bindir}/${TARGET_SYS}/${TARGET_PREFIX}ld |
146 | fi | 147 | fi |
147 | } | 148 | } |