edk2
edk2 copied to clipboard
EmbeddedPkg: MDEPKG_NDEBUG fixes
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