[edk2-devel] [PATCH v1 2/2] DynamicTablesPkg: Update release build flags

Sami Mujawar posted 2 patches 5 years, 6 months ago
[edk2-devel] [PATCH v1 2/2] DynamicTablesPkg: Update release build flags
Posted by Sami Mujawar 5 years, 6 months ago
If MDEPKG_NDEBUG is defined, then debug and assert related
macros wrapped by it are mapped to NULL implementations.
Therefore, add MDEPKG_NDEBUG flags for release builds of
DynamicTablesPkg.

Signed-off-by: Sami Mujawar <sami.mujawar@arm.com>
---
 DynamicTablesPkg/DynamicTables.dsc.inc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/DynamicTablesPkg/DynamicTables.dsc.inc b/DynamicTablesPkg/DynamicTables.dsc.inc
index d15b74884f0b618e427ac8c6804c50b4746ea602..df64e1dc4cd7ce0b68037ef544fbde1c435e43e3 100644
--- a/DynamicTablesPkg/DynamicTables.dsc.inc
+++ b/DynamicTablesPkg/DynamicTables.dsc.inc
@@ -10,6 +10,7 @@
 [Defines]
 
 [BuildOptions]
+  RELEASE_*_*_CC_FLAGS     = -DMDEPKG_NDEBUG
 
 [LibraryClasses.common]
   TableHelperLib|DynamicTablesPkg/Library/Common/TableHelperLib/TableHelperLib.inf
-- 
'Guid(CE165669-3EF3-493F-B85D-6190EE5B9759)'


-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#63823): https://edk2.groups.io/g/devel/message/63823
Mute This Topic: https://groups.io/mt/76051060/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-

Re: [edk2-devel] [PATCH v1 2/2] DynamicTablesPkg: Update release build flags
Posted by Alexei Fedorov 5 years, 6 months ago
Reviewed-by: Alexei Fedorov <Alexei.Fedorov@arm.com>

-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.

View/Reply Online (#63826): https://edk2.groups.io/g/devel/message/63826
Mute This Topic: https://groups.io/mt/76051060/1787277
Group Owner: devel+owner@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub  [importer@patchew.org]
-=-=-=-=-=-=-=-=-=-=-=-