(In reply to Joey Lee from comment #3) > I filed a merge request to edk2 mainline: > > https://github.com/tianocore/edk2/pull/6193 The patch be merged to mainline: commit 5c8bdb190f6dd79f38ef6191754c9a26892f8d26 Author: Chun-Yi Lee <jlee@suse.com> Date: Thu Sep 12 14:32:05 2024 +0800 MdePkg DebugLib: Enable FILE NAME as DEBUG ASSERT for GCC12 Using __FILE_NAME__ is useful for reducing the size of debug image and it's also good for reproducable builds. The gcc-12 also supported this macro. Ref: https://gcc.gnu.org/git/gitweb.cgi?p=gcc.git;h=1a9b3f04c11eb467a8dc504a37dad57a371a0d4c This patch removed the checking of __clang__ when using __FILE_NAME__. References: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=42579 Signed-off-by: Chun-Yi Lee <jlee@suse.com>