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
This commit is contained in:
angelomds42 2026-04-10 20:20:24 -03:00 • committed by Nolen Johnson
commit af20c21925

View file

@ -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