1
0
mirror of https://git.yoctoproject.org/meta-arm synced 2026-04-20 11:29:54 +00:00

arm/edk2-firmware: force debug builds when using Clang

edk2-firmware release builds with clang fail:

MdePkg/Library/UefiMemoryAllocationLib/MemoryAllocationLib.c:142:15:
error: variable 'Status' set but not used [-Werror,-Wunused-but-set-variable]

This is upstream as https://bugzilla.tianocore.org/show_bug.cgi?id=3758,
but until that is resolved we can just force debug builds with clang.

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Jon Mason <jon.mason@arm.com>
This commit is contained in:
Ross Burton
2021-12-03 13:26:06 +00:00
committed by Jon Mason
parent fb9232c4e1
commit a0296bf8a0

View File

@@ -26,6 +26,10 @@ COMPATIBLE_MACHINE ?= "invalid"
PACKAGE_ARCH = "${MACHINE_ARCH}"
EDK2_BUILD_RELEASE = "1"
# Release builds don't work with clang yet:
# https://bugzilla.tianocore.org/show_bug.cgi?id=3758
EDK2_BUILD_RELEASE:toolchain-clang = "0"
EDK2_PLATFORM = "unset"
# build --platform
EDK2_PLATFORM_DSC = "unset"