From b243ead0aa6b0ca904a5b3f30d31e2917dda360f Mon Sep 17 00:00:00 2001 From: Yonghong Zhu Date: Wed, 14 Jun 2017 11:50:56 +0800 Subject: [PATCH] MdePkg: update Base.h in MdePkg to check the _MSC_VER update Base.h in MdePkg to check the _MSC_VER and define GLOBAL_REMOVE_IF_UNREFERENCED to nothing for VS2013 and higher tool chain tags. Cc: Liming Gao Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Yonghong Zhu Reviewed-by: Michael D Kinney --- MdePkg/Include/Base.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/MdePkg/Include/Base.h b/MdePkg/Include/Base.h index 5b311f6648..21a603a903 100644 --- a/MdePkg/Include/Base.h +++ b/MdePkg/Include/Base.h @@ -91,7 +91,7 @@ VERIFY_SIZE_OF (__VERIFY_UINT32_ENUM_SIZE, 4); // if the /OPT:REF linker option is used. We defined a macro as this is a // a non standard extension // -#if defined(_MSC_EXTENSIONS) && !defined (MDE_CPU_EBC) +#if defined(_MSC_EXTENSIONS) && _MSC_VER < 1800 && !defined (MDE_CPU_EBC) /// /// Remove global variable from the linked image if there are no references to /// it after all compiler and linker optimizations have been performed. -- 2.39.2