Skip to content

Commit

Permalink
clang: Add packageconfig option for build-id
Browse files Browse the repository at this point in the history
Enable it by default, since it is needed for debuginfod to work

Fixes #956

Signed-off-by: Khem Raj <[email protected]>
  • Loading branch information
kraj committed Jul 4, 2024
1 parent a2f67ce commit f396ed6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion recipes-devtools/clang/clang_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def get_clang_target_arch(bb, d):
def get_clang_experimental_target_arch(bb, d):
return get_clang_experimental_arch(bb, d, 'TARGET_ARCH')

PACKAGECONFIG_CLANG_COMMON = "eh libedit rtti shared-libs \
PACKAGECONFIG_CLANG_COMMON = "build-id eh libedit rtti shared-libs \
${@bb.utils.contains('TC_CXX_RUNTIME', 'llvm', 'compiler-rt libcplusplus libomp unwindlib', '', d)} \
"

Expand All @@ -75,6 +75,7 @@ PACKAGECONFIG:class-nativesdk = "clangd \
"

PACKAGECONFIG[bootstrap] = "-DCLANG_ENABLE_BOOTSTRAP=On -DCLANG_BOOTSTRAP_PASSTHROUGH='${PASSTHROUGH}' -DBOOTSTRAP_LLVM_ENABLE_LTO=Thin -DBOOTSTRAP_LLVM_ENABLE_LLD=ON,,,"
PACKAGECONFIG[build-id] = "-DENABLE_LINKER_BUILD_ID=ON,-DENABLE_LINKER_BUILD_ID=OFF,,"
PACKAGECONFIG[clangd] = "-DCLANG_ENABLE_CLANGD=ON,-DCLANG_ENABLE_CLANGD=OFF,,"
PACKAGECONFIG[compiler-rt] = "-DCLANG_DEFAULT_RTLIB=compiler-rt,,"
PACKAGECONFIG[eh] = "-DLLVM_ENABLE_EH=ON,-DLLVM_ENABLE_EH=OFF,,"
Expand Down

2 comments on commit f396ed6

@abuibrahim
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can this be cherry-picked into scarthgap as well, please?

@kraj
Copy link
Owner Author

@kraj kraj commented on f396ed6 Jul 5, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Feel free to send a pull request

Please sign in to comment.