mirror of https://github.com/acidanthera/audk.git
OvmfPkg: Enable CLANG9 tool chain
BZ: https://bugzilla.tianocore.org/show_bug.cgi?id=1603 1. Apply CLANG9 Linker option. 2. Exclude -mno-mmx -mno-sse compiler option for CLANG9 These two options will cause CLANG Linker crush. Signed-off-by: Liming Gao <liming.gao@intel.com> Reviewed-by: Laszlo Ersek <lersek@redhat.com>
This commit is contained in:
parent
2737037a41
commit
703232b8e8
|
@ -67,7 +67,7 @@
|
|||
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"
|
||||
!if $(TOOL_CHAIN_TAG) != "XCODE5" && $(TOOL_CHAIN_TAG) != "CLANG9"
|
||||
GCC:*_*_*_CC_FLAGS = -mno-mmx -mno-sse
|
||||
!endif
|
||||
|
||||
|
@ -81,12 +81,14 @@
|
|||
[BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
|
||||
GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
|
||||
XCODE:*_*_*_DLINK_FLAGS =
|
||||
CLANGPE: *_*_*_DLINK_FLAGS = /ALIGN:4096
|
||||
|
||||
# Force PE/COFF sections to be aligned at 4KB boundaries to support page level
|
||||
# protection of DXE_SMM_DRIVER/SMM_CORE modules
|
||||
[BuildOptions.common.EDKII.DXE_SMM_DRIVER, BuildOptions.common.EDKII.SMM_CORE]
|
||||
GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
|
||||
XCODE:*_*_*_DLINK_FLAGS =
|
||||
CLANGPE: *_*_*_DLINK_FLAGS = /ALIGN:4096
|
||||
|
||||
################################################################################
|
||||
#
|
||||
|
|
|
@ -67,7 +67,7 @@
|
|||
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"
|
||||
!if $(TOOL_CHAIN_TAG) != "XCODE5" && $(TOOL_CHAIN_TAG) != "CLANG9"
|
||||
GCC:*_*_*_CC_FLAGS = -mno-mmx -mno-sse
|
||||
!endif
|
||||
!if $(SOURCE_DEBUG_ENABLE) == TRUE
|
||||
|
@ -86,12 +86,14 @@
|
|||
[BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
|
||||
GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
|
||||
XCODE:*_*_*_DLINK_FLAGS =
|
||||
CLANGPE: *_*_*_DLINK_FLAGS = /ALIGN:4096
|
||||
|
||||
# Force PE/COFF sections to be aligned at 4KB boundaries to support page level
|
||||
# protection of DXE_SMM_DRIVER/SMM_CORE modules
|
||||
[BuildOptions.common.EDKII.DXE_SMM_DRIVER, BuildOptions.common.EDKII.SMM_CORE]
|
||||
GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
|
||||
XCODE:*_*_*_DLINK_FLAGS =
|
||||
CLANGPE: *_*_*_DLINK_FLAGS = /ALIGN:4096
|
||||
|
||||
################################################################################
|
||||
#
|
||||
|
|
|
@ -67,7 +67,7 @@
|
|||
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"
|
||||
!if $(TOOL_CHAIN_TAG) != "XCODE5" && $(TOOL_CHAIN_TAG) != "CLANG9"
|
||||
GCC:*_*_*_CC_FLAGS = -mno-mmx -mno-sse
|
||||
!endif
|
||||
!if $(SOURCE_DEBUG_ENABLE) == TRUE
|
||||
|
@ -86,12 +86,14 @@
|
|||
[BuildOptions.common.EDKII.DXE_RUNTIME_DRIVER]
|
||||
GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
|
||||
XCODE:*_*_*_DLINK_FLAGS =
|
||||
CLANGPE: *_*_*_DLINK_FLAGS = /ALIGN:4096
|
||||
|
||||
# Force PE/COFF sections to be aligned at 4KB boundaries to support page level
|
||||
# protection of DXE_SMM_DRIVER/SMM_CORE modules
|
||||
[BuildOptions.common.EDKII.DXE_SMM_DRIVER, BuildOptions.common.EDKII.SMM_CORE]
|
||||
GCC:*_*_*_DLINK_FLAGS = -z common-page-size=0x1000
|
||||
XCODE:*_*_*_DLINK_FLAGS =
|
||||
CLANGPE: *_*_*_DLINK_FLAGS = /ALIGN:4096
|
||||
|
||||
################################################################################
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue