summaryrefslogtreecommitdiff
path: root/SecurityPkg
diff options
context:
space:
mode:
authorAndrew Fish <afish@apple.com>2014-06-16 08:31:41 +0000
committertye1 <tye1@6f19259b-4bc3-4df7-8a09-765794883524>2014-06-16 08:31:41 +0000
commit9a70350fff479888871f2efbf688c8ca49aa92b5 (patch)
tree05277991800f3ee116004ad50d4369d96043b945 /SecurityPkg
parent7bf3ce9ff9912a3fbd64c199798bdfce4c9426ec (diff)
downloadedk2-platforms-9a70350fff479888871f2efbf688c8ca49aa92b5.tar.xz
Fix build issues with Xcode in CryptoPkg and SecurityPkg.
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Andrew Fish <afish@apple.com> Reviewed-by: Ye Ting <ting.ye@intel.com> Reviewed-by: Long Qin <qin.long@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@15561 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'SecurityPkg')
-rw-r--r--SecurityPkg/Library/DxeDeferImageLoadLib/DxeDeferImageLoadLib.c2
-rw-r--r--SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.inf3
2 files changed, 4 insertions, 1 deletions
diff --git a/SecurityPkg/Library/DxeDeferImageLoadLib/DxeDeferImageLoadLib.c b/SecurityPkg/Library/DxeDeferImageLoadLib/DxeDeferImageLoadLib.c
index 3cbd098365..1729051694 100644
--- a/SecurityPkg/Library/DxeDeferImageLoadLib/DxeDeferImageLoadLib.c
+++ b/SecurityPkg/Library/DxeDeferImageLoadLib/DxeDeferImageLoadLib.c
@@ -246,7 +246,7 @@ GetAccessControl (
CheckLen = 0;
while (CheckLen < Info->InfoSize - sizeof (EFI_USER_INFO)) {
Access = (EFI_USER_INFO_ACCESS_CONTROL *) ((UINT8 *) (Info + 1) + CheckLen);
- if ((Access->Type == AccessType)) {
+ if (Access->Type == AccessType) {
*AccessControl = AllocateZeroPool (Access->Size);
ASSERT (*AccessControl != NULL);
CopyMem (*AccessControl, Access, Access->Size);
diff --git a/SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.inf b/SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.inf
index 0ea5949a03..553dbf5cce 100644
--- a/SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.inf
+++ b/SecurityPkg/RandomNumberGenerator/RngDxe/RngDxe.inf
@@ -75,3 +75,6 @@
[Depex]
TRUE
+
+[BuildOptions]
+ XCODE:*_*_*_CC_FLAGS = -mmmx -msse