From af20c219259af1342affe777c8cf9bce55c24b49 Mon Sep 17 00:00:00 2001 From: angelomds42 Date: Fri, 10 Apr 2026 20:20:24 -0300 Subject: [PATCH] Makefile: Fix LLVM_IAS condition after IAS default flip The commit 01ecebdbac6e ("BACKPORT: scripts/Makefile.clang: default to LLVM_IAS=1") flipped LLVM_IAS to opt-out but did not update the ifneq ($(LLVM_IAS),1) condition introduced by 2f5d594440ac ("FROMLIST: Kbuild: do not emit debug info for assembly with LLVM_IAS=1"), causing warnings when LLVM_IAS is unset: warning: DWARF2 only supports one section per compilation unit Fixes: 01ecebdbac6e ("BACKPORT: scripts/Makefile.clang: default to LLVM_IAS=1") Change-Id: If373071466d851ee8d814751f9bc4672e68aaf34 --- Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 4593e9d0cdde..29d4cff5f7de 100644 --- a/Makefile +++ b/Makefile @@ -871,10 +871,10 @@ DEBUG_CFLAGS += -gsplit-dwarf else DEBUG_CFLAGS += -g endif -ifeq ($(LLVM_IAS),1) -KBUILD_AFLAGS += -g -else +ifeq ($(LLVM_IAS),0) KBUILD_AFLAGS += -Wa,-gdwarf-2 +else +KBUILD_AFLAGS += -g endif endif