summaryrefslogtreecommitdiff
path: root/MdePkg
diff options
context:
space:
mode:
authorHao Wu <hao.a.wu@intel.com>2016-08-01 14:09:43 +0800
committerHao Wu <hao.a.wu@intel.com>2016-08-08 11:00:08 +0800
commitf2ecdbf0042f242913fdec230ec2643c2e2dcf38 (patch)
treea6dd9395c27e9a2be5c7d251d55fa84f5abdf36b /MdePkg
parent42beb6e422696c1e548576f0610550e53bff18c4 (diff)
downloadedk2-platforms-f2ecdbf0042f242913fdec230ec2643c2e2dcf38.tar.xz
MdePkg DSC: Add build option to disable deprecated APIs
Add the following definition in the [BuildOptions] section in package DSC files to disable APIs that are deprecated: [BuildOptions] *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES Cc: Michael D Kinney <michael.d.kinney@intel.com> Cc: Liming Gao <liming.gao@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Hao Wu <hao.a.wu@intel.com> Reviewed-by: Liming Gao <liming.gao@intel.com>
Diffstat (limited to 'MdePkg')
-rw-r--r--MdePkg/MdePkg.dsc3
1 files changed, 3 insertions, 0 deletions
diff --git a/MdePkg/MdePkg.dsc b/MdePkg/MdePkg.dsc
index 7fe9e6bb4a..ab57689c62 100644
--- a/MdePkg/MdePkg.dsc
+++ b/MdePkg/MdePkg.dsc
@@ -178,3 +178,6 @@
[Components.ARM, Components.AARCH64]
MdePkg/Library/BaseStackCheckLib/BaseStackCheckLib.inf
+
+[BuildOptions]
+ *_*_*_CC_FLAGS = -D DISABLE_NEW_DEPRECATED_INTERFACES