From c204da4d5dfe13910c6fc0591955af54c68ad9a9 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Wed, 2 Jun 2021 12:20:22 -0700 Subject: poke: Do not use -O2 with clang clang13 has a regression which segfaults the compiler while compiling poke, its reported upstream, until it is fixed do not use -O2 compiler switch Signed-off-by: Khem Raj (cherry picked from commit d01e38f98bb03d9afa72e9dfc10eb936fc6a4c29) --- conf/nonclangable.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/conf/nonclangable.conf b/conf/nonclangable.conf index b515e69..e282de8 100644 --- a/conf/nonclangable.conf +++ b/conf/nonclangable.conf @@ -313,3 +313,6 @@ TOOLCHAIN_pn-u-boot-stm32mp = "gcc" TOOLCHAIN_pn-tf-a-stm32mp = "gcc" TOOLCHAIN_pn-tf-a-stm32mp-serialboot = "gcc" TOOLCHAIN_pn-u-boot-seco-imx = "gcc" + +# see https://bugs.llvm.org/show_bug.cgi?id=50443 this is in clang-13, until it is fixed do not use -O2 +SELECTED_OPTIMIZATION_remove_pn-poke_toolchain-clang = "-O2" -- cgit v1.2.3-54-g00ecf