Skip to content

Commit

Permalink
Revert "Base.h: Ignore VA macro Mu change when host tests are enabled"
Browse files Browse the repository at this point in the history
This reverts commit 7281ec2.
  • Loading branch information
Javagedes committed Aug 5, 2024
1 parent 90adf2b commit bc95b07
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
4 changes: 1 addition & 3 deletions MdePkg/Include/Base.h
Original file line number Diff line number Diff line change
Expand Up @@ -667,9 +667,7 @@ typedef __builtin_va_list VA_LIST;
// VA macros for Visual Studio
// This comes from the VS header:
// Microsoft Visual Studio\2017\Enterprise\VC\Tools\MSVC\<version>\include\vadefs.h
// Do not use when building host-based unit tests as these definitions conflict with those
// used in original header file.
#elif defined (_MSC_VER) && !defined (HOST_UNIT_TEST_BUILD)
#elif defined (_MSC_VER)

//
// Microsoft compilers
Expand Down
5 changes: 0 additions & 5 deletions UnitTestFrameworkPkg/UnitTestFrameworkPkgHost.dsc.inc
Original file line number Diff line number Diff line change
Expand Up @@ -25,11 +25,6 @@
NULL|UnitTestFrameworkPkg/Library/UnitTestDebugAssertLib/UnitTestDebugAssertLibHost.inf

[BuildOptions]
# MU_CHANGE [BEGIN] - Add build flag to detect when building host-based unit tests
MSFT:*_*_*_CC_FLAGS = /MT -D HOST_UNIT_TEST_BUILD=1 /GS- # Disable Stack Protection for Host-Based Unit Tests
GCC:*_*_*_CC_FLAGS = -D HOST_UNIT_TEST_BUILD=1 -fno-stack-protector # Disable Stack Protection for Host-Based Unit Tests
XCODE:*_*_*_CC_FLAGS = -D HOST_UNIT_TEST_BUILD=1
# MU_CHANGE [END] - Add build flag to detect when building host-based unit tests
GCC:*_*_*_CC_FLAGS = -fno-pie
!ifdef $(UNIT_TESTING_DEBUG)
MSFT:*_*_*_CC_FLAGS = /MTd -D UNIT_TESTING_DEBUG=1
Expand Down

0 comments on commit bc95b07

Please sign in to comment.