OVMF: Define MDEPKG_NDEBUG to disable all debug code by default
git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9673 6f19259b-4bc3-4df7-8a09-765794883524
diff --git a/OvmfPkg/OvmfPkgIa32X64.dsc b/OvmfPkg/OvmfPkgIa32X64.dsc
index 55fc6ce..a96064e 100644
--- a/OvmfPkg/OvmfPkgIa32X64.dsc
+++ b/OvmfPkg/OvmfPkgIa32X64.dsc
@@ -29,6 +29,11 @@
SKUID_IDENTIFIER = DEFAULT
FLASH_DEFINITION = OvmfPkg/OvmfPkgIa32X64.fdf
+[BuildOptions]
+ GCC:*_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
+ INTEL:*_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
+ MSFT:*_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
+
################################################################################
#
# SKU Identification section - list of all SKU IDs supported by this Platform.