edk2 icon indicating copy to clipboard operation
edk2 copied to clipboard

EmbeddedPkg: MDEPKG_NDEBUG fixes

Open mikebeaton opened this issue 4 months ago • 0 comments

Description

Add -DMDEPKG_NDEBUG to EmbeddedPkg CC_FLAGS for RELEASE build. Although EmbeddedPkg normally provides components to other packages, it is less surprising if its own build defines MDEPKG_NDEBUG when consuming packages normally would.

Additionally remove MDEPKG_NDEBUG dependent code which is no longer needed given update of 'null' debug macros in ae83c6b7fd83a5906e016a32027c1bcd792a624e to explicitly mark debug-only code as discarded; correctly mark as STATIC the two arrays within the updated code block.

  • [ ] Breaking change?
  • [ ] Impacts security?
  • [ ] Includes tests?

How This Was Tested

Local build.

Integration Instructions

N/A

mikebeaton avatar Oct 19 '24 23:10 mikebeaton