OvmfPkg: Don't add -mno-mmx -mno-sse option for XCODE5 tool chain
Ovmf appended option -mno-mmx -mno-sse, but these two options were enabled
in Openssl. The compiler option becomes -mmmx ?msse -mno-mmx -mno-sse. It
trig mac clang compiler hang when compile one source file in openssl.
This issue is found when SECURE_BOOT_ENABLE is TRUE. This may be the compiler
issue. To work around it, don't add these two options for XCODE5 tool chain.
Contributed-under: TianoCore Contribution Agreement 1.1
Signed-off-by: Liming Gao <liming.gao@intel.com>
Cc: Andrew Fish <afish@apple.com>
Cc: Laszlo Ersek <lersek@redhat.com>
Reviewed-by: Laszlo Ersek <lersek@redhat.com>
(cherry picked from commit 4a64cbda86
)
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
## @file
|
||||
# EFI/Framework Open Virtual Machine Firmware (OVMF) platform
|
||||
#
|
||||
# Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
# (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
|
||||
#
|
||||
# This program and the accompanying materials
|
||||
@@ -64,7 +64,9 @@
|
||||
GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
|
||||
INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
|
||||
MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
|
||||
!if $(TOOL_CHAIN_TAG) != "XCODE5"
|
||||
GCC:*_*_*_CC_FLAGS = -mno-mmx -mno-sse
|
||||
!endif
|
||||
|
||||
#
|
||||
# Disable deprecated APIs.
|
||||
|
@@ -1,7 +1,7 @@
|
||||
## @file
|
||||
# EFI/Framework Open Virtual Machine Firmware (OVMF) platform
|
||||
#
|
||||
# Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
# (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
|
||||
#
|
||||
# This program and the accompanying materials
|
||||
@@ -64,7 +64,9 @@
|
||||
GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
|
||||
INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
|
||||
MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
|
||||
!if $(TOOL_CHAIN_TAG) != "XCODE5"
|
||||
GCC:*_*_*_CC_FLAGS = -mno-mmx -mno-sse
|
||||
!endif
|
||||
!ifdef $(SOURCE_DEBUG_ENABLE)
|
||||
MSFT:*_*_X64_GENFW_FLAGS = --keepexceptiontable
|
||||
GCC:*_*_X64_GENFW_FLAGS = --keepexceptiontable
|
||||
|
@@ -1,7 +1,7 @@
|
||||
## @file
|
||||
# EFI/Framework Open Virtual Machine Firmware (OVMF) platform
|
||||
#
|
||||
# Copyright (c) 2006 - 2017, Intel Corporation. All rights reserved.<BR>
|
||||
# Copyright (c) 2006 - 2018, Intel Corporation. All rights reserved.<BR>
|
||||
# (C) Copyright 2016 Hewlett Packard Enterprise Development LP<BR>
|
||||
#
|
||||
# This program and the accompanying materials
|
||||
@@ -64,7 +64,9 @@
|
||||
GCC:RELEASE_*_*_CC_FLAGS = -DMDEPKG_NDEBUG
|
||||
INTEL:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
|
||||
MSFT:RELEASE_*_*_CC_FLAGS = /D MDEPKG_NDEBUG
|
||||
!if $(TOOL_CHAIN_TAG) != "XCODE5"
|
||||
GCC:*_*_*_CC_FLAGS = -mno-mmx -mno-sse
|
||||
!endif
|
||||
!ifdef $(SOURCE_DEBUG_ENABLE)
|
||||
MSFT:*_*_X64_GENFW_FLAGS = --keepexceptiontable
|
||||
GCC:*_*_X64_GENFW_FLAGS = --keepexceptiontable
|
||||
|
Reference in New Issue
Block a user