Skip to content

Commit

Permalink
layer.conf: remove '-mbranch-protection=standard' gloably on aarch64
Browse files Browse the repository at this point in the history
On aarch64 the handling of runtime exception is broken when build with clang.
There is currently a fix for libcxx on the layer but it is not enough and this
same fix needs to be applied globally.

First fix attempt just include libcxx:
kraj#963
kraj#968

Remaining reported issue:
kraj#998

Signed-off-by: Jose Quaresma <[email protected]>
  • Loading branch information
quaresmajose committed Aug 20, 2024
1 parent a219212 commit db1aa70
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions conf/layer.conf
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,8 @@ CLANGSDK ??= "0"

LLVMVERSION = "18.1.8"

# introduced in oe-core 8905639d breaks the handling of runtime exception when build with clang
TUNE_CCARGS:remove:toolchain-clang = "${@bb.utils.contains('TUNE_FEATURES', 'aarch64', '-mbranch-protection=standard', '', d)}"

require conf/nonclangable.conf
require conf/nonscanable.conf

0 comments on commit db1aa70

Please sign in to comment.