clang and gcc have different lto flags

Signed-off-by: Sergey Isakov <isakov-sl@bk.ru>
This commit is contained in:
Sergey Isakov 2022-05-29 15:46:35 +03:00
parent 3ee1a1bf25
commit 103e3baaa3
2 changed files with 100 additions and 98 deletions

View File

@ -958,8 +958,10 @@ rEFIt_UEFI/refit.inf {
!ifdef DISABLE_LTO
DEFINE LTO_FLAG = -fno-lto -UUSING_LTO
DEFINE XLTO_FLAG = -fno-lto -UUSING_LTO
!else
DEFINE LTO_FLAG = -flto=auto -DUSING_LTO
DEFINE XLTO_FLAG = -flto -DUSING_LTO
!endif
@ -984,8 +986,8 @@ DEFINE BUILD_OPTIONS=-DIS_UEFI_MODULE -DMDEPKG_NDEBUG -DCLOVER_BUILD -DLESS_DEBU
MSFT:*_*_*_CC_FLAGS = $(BUILD_OPTIONS)
MSFT:*_*_*_CXX_FLAGS = $(BUILD_OPTIONS)
XCODE:*_*_*_CC_FLAGS = -std=c11 -fno-unwind-tables $(BUILD_OPTIONS) $(LTO_FLAG)
XCODE:*_*_*_CXX_FLAGS = -std=c++11 -fno-unwind-tables $(BUILD_OPTIONS) $(LTO_FLAG)
XCODE:*_*_*_CC_FLAGS = -std=c11 -fno-unwind-tables $(BUILD_OPTIONS) $(XLTO_FLAG)
XCODE:*_*_*_CXX_FLAGS = -std=c++11 -fno-unwind-tables $(BUILD_OPTIONS) $(XLTO_FLAG)
GCC:*_*_*_CC_FLAGS = -std=c11 $(BUILD_OPTIONS) $(LTO_FLAG)
GCC:*_*_*_CXX_FLAGS = -std=c++11 $(BUILD_OPTIONS) $(LTO_FLAG)
#-fanalyzer -Wmismatched-tags

View File

@ -22417,112 +22417,112 @@
A591CCE326FF78AE00F9DBF0 /* Platform */ = {
isa = PBXGroup;
children = (
A591CCE426FF78AE00F9DBF0 /* gma.h */,
A591CCE526FF78AE00F9DBF0 /* plist */,
A591CCFE26FF78AE00F9DBF0 /* DataHubExt.h */,
A591CCFF26FF78AE00F9DBF0 /* APFS.cpp */,
A591CD0026FF78AE00F9DBF0 /* Console.h */,
A591CD0126FF78AE00F9DBF0 /* AcpiPatcher.h */,
A591CD0226FF78AE00F9DBF0 /* MemoryOperation.h */,
A591CD0326FF78AE00F9DBF0 /* MacOsVersion.h */,
A591CD0426FF78AE00F9DBF0 /* LegacyBoot.cpp */,
A591CD0526FF78AE00F9DBF0 /* Utils.h */,
A591CD0626FF78AE00F9DBF0 /* SmbiosFillPatchingValues.h */,
A591CD0726FF78AE00F9DBF0 /* HdaCodecDump.cpp */,
A591CD0826FF78AE00F9DBF0 /* Hibernate.h */,
A591CD0926FF78AE00F9DBF0 /* kext_patcher.cpp */,
A591CD0A26FF78AE00F9DBF0 /* StateGenerator.h */,
A591CD0B26FF78AE00F9DBF0 /* memvendors.h */,
A591CD0C26FF78AE00F9DBF0 /* usbfix.h */,
A591CD0D26FF78AE00F9DBF0 /* AmlGenerator.h */,
A591CD0E26FF78AE00F9DBF0 /* BasicIO.h */,
A591CD0F26FF78AE00F9DBF0 /* Utils.cpp */,
A591CD1026FF78AE00F9DBF0 /* Hibernate.cpp */,
A591CD1126FF78AE00F9DBF0 /* AcpiPatcher.cpp */,
A591CD1226FF78AE00F9DBF0 /* StateGenerator.cpp */,
A591CD1326FF78AE00F9DBF0 /* kernel_patcher.h */,
A591CD1426FF78AE00F9DBF0 /* card_vlist.h */,
A591CD0126FF78AE00F9DBF0 /* AcpiPatcher.h */,
A591CD1526FF78AE00F9DBF0 /* AmlGenerator.cpp */,
A591CD1626FF78AE00F9DBF0 /* BdsConnect.cpp */,
A591CD1726FF78AE00F9DBF0 /* SettingsUtils.cpp */,
A591CD1826FF78AE00F9DBF0 /* Settings.h */,
A591CD1926FF78AE00F9DBF0 /* KextList.h */,
A591CD1A26FF78AE00F9DBF0 /* Nvram.h */,
A591CD1B26FF78AE00F9DBF0 /* Injectors.h */,
A591CD1C26FF78AE00F9DBF0 /* PlatformDriverOverride.cpp */,
A591CD1D26FF78AE00F9DBF0 /* Edid.cpp */,
A591CD1E26FF78AE00F9DBF0 /* sse3_5_patcher.h */,
A591CD1F26FF78AE00F9DBF0 /* StartupSound.h */,
A591CD2026FF78AE00F9DBF0 /* Console.cpp */,
A591CD2126FF78AE00F9DBF0 /* DataHubCpu.cpp */,
A591CD2226FF78AE00F9DBF0 /* hda.h */,
A591CD2326FF78AE00F9DBF0 /* DataHub.cpp */,
A591CD2426FF78AE00F9DBF0 /* device_inject.h */,
A591CD2526FF78AE00F9DBF0 /* b64cdecode.cpp */,
A591CD2626FF78AE00F9DBF0 /* LegacyBoot.h */,
A591CD2726FF78AE00F9DBF0 /* kext_inject.cpp */,
A591CD2826FF78AE00F9DBF0 /* Nvram.cpp */,
A591CD2926FF78AE00F9DBF0 /* nvidia.h */,
A591CD2A26FF78AE00F9DBF0 /* Events.h */,
A591CD2B26FF78AE00F9DBF0 /* PlatformDriverOverride.h */,
A591CD2C26FF78AE00F9DBF0 /* guid.h */,
A591CD2D26FF78AE00F9DBF0 /* BootOptions.h */,
A591CD2E26FF78AE00F9DBF0 /* Injectors.cpp */,
A591CD2F26FF78AE00F9DBF0 /* LegacyBiosThunk.cpp */,
A591CD3026FF78AE00F9DBF0 /* CloverVersion.cpp */,
A591CD3126FF78AE00F9DBF0 /* SettingsUtils.h */,
A591CD3226FF78AE00F9DBF0 /* KERNEL_AND_KEXT_PATCHES.h */,
A591CD3326FF78AE00F9DBF0 /* SmbiosFillPatchingValues.cpp */,
A591CD3426FF78AE00F9DBF0 /* boot.h */,
A591CD3526FF78AE00F9DBF0 /* DataHubCpu.h */,
A591CD3626FF78AE00F9DBF0 /* MacOsVersion.cpp */,
A591CD3726FF78AE00F9DBF0 /* BootOptions.cpp */,
A591CD3826FF78AE00F9DBF0 /* sse3_patcher.h */,
A591CD3926FF78AE00F9DBF0 /* kernel_patcher.cpp */,
A591CD3A26FF78AE00F9DBF0 /* gma.cpp */,
A591CD3B26FF78AE00F9DBF0 /* BootLog.h */,
A591CD3C26FF78AE00F9DBF0 /* hda.cpp */,
A591CD3D26FF78AE00F9DBF0 /* spd.cpp */,
A591CD3E26FF78AE00F9DBF0 /* HdaCodecDump.h */,
A591CD3F26FF78AE00F9DBF0 /* platformdata.cpp */,
A591CD4026FF78AE00F9DBF0 /* ati.cpp */,
A591CD4126FF78AE00F9DBF0 /* StartupSound.cpp */,
A591CD4226FF78AE00F9DBF0 /* MemoryOperation.c */,
A591CD4326FF78AE00F9DBF0 /* Settings.h.orig */,
A591CD4426FF78AE00F9DBF0 /* ati.h */,
A591CD4526FF78AE00F9DBF0 /* platformdata.h */,
A591CD4626FF78AE00F9DBF0 /* ati2.h */,
A591CD4726FF78AE00F9DBF0 /* kext_inject.h */,
A591CD0D26FF78AE00F9DBF0 /* AmlGenerator.h */,
A591CCFF26FF78AE00F9DBF0 /* APFS.cpp */,
A591CD4826FF78AE00F9DBF0 /* APFS.h */,
A591CD4926FF78AE00F9DBF0 /* cpu.h */,
A591CD4A26FF78AE00F9DBF0 /* sound.cpp */,
A591CD4B26FF78AE00F9DBF0 /* LegacyBiosThunk.h */,
A591CD4C26FF78AE00F9DBF0 /* VersionString.cpp */,
A591CD5126FF78AE00F9DBF0 /* ati_reg.h */,
A591CD4026FF78AE00F9DBF0 /* ati.cpp */,
A591CD4426FF78AE00F9DBF0 /* ati.h */,
A591CD4626FF78AE00F9DBF0 /* ati2.h */,
A591CD2526FF78AE00F9DBF0 /* b64cdecode.cpp */,
A591CD4D26FF78AE00F9DBF0 /* b64cdecode.h */,
A591CD0E26FF78AE00F9DBF0 /* BasicIO.h */,
A591CD1626FF78AE00F9DBF0 /* BdsConnect.cpp */,
A591CD3426FF78AE00F9DBF0 /* boot.h */,
A591CD3B26FF78AE00F9DBF0 /* BootLog.h */,
A591CD3726FF78AE00F9DBF0 /* BootOptions.cpp */,
A591CD2D26FF78AE00F9DBF0 /* BootOptions.h */,
A591CD6326FF78AE00F9DBF0 /* card_vlist.cpp */,
A591CD1426FF78AE00F9DBF0 /* card_vlist.h */,
A591CD3026FF78AE00F9DBF0 /* CloverVersion.cpp */,
A591CD5426FF78AE00F9DBF0 /* CloverVersion.h */,
A591CD2026FF78AE00F9DBF0 /* Console.cpp */,
A591CD0026FF78AE00F9DBF0 /* Console.h */,
A591CD5A26FF78AE00F9DBF0 /* cpu.cpp */,
A591CD4926FF78AE00F9DBF0 /* cpu.h */,
A591CD2326FF78AE00F9DBF0 /* DataHub.cpp */,
A591CD5D26FF78AE00F9DBF0 /* DataHub.h */,
A591CD2126FF78AE00F9DBF0 /* DataHubCpu.cpp */,
A591CD3526FF78AE00F9DBF0 /* DataHubCpu.h */,
A591CCFE26FF78AE00F9DBF0 /* DataHubExt.h */,
A591CD5026FF78AE00F9DBF0 /* device_inject.cpp */,
A591CD2426FF78AE00F9DBF0 /* device_inject.h */,
A591CD1D26FF78AE00F9DBF0 /* Edid.cpp */,
A591CD4E26FF78AE00F9DBF0 /* Edid.h */,
A591CD4F26FF78AE00F9DBF0 /* Events.cpp */,
A591CD5026FF78AE00F9DBF0 /* device_inject.cpp */,
A591CD5126FF78AE00F9DBF0 /* ati_reg.h */,
A591CD5226FF78AE00F9DBF0 /* nvidia.cpp */,
A591CD5326FF78AE00F9DBF0 /* smbios.h */,
A591CD5426FF78AE00F9DBF0 /* CloverVersion.h */,
A591CD5526FF78AE00F9DBF0 /* smbios.cpp */,
A591CD5626FF78AE00F9DBF0 /* KextList.cpp */,
A591CD5726FF78AE00F9DBF0 /* Volume.h */,
A591CD5826FF78AE00F9DBF0 /* VersionString.h */,
A591CD5926FF78AE00F9DBF0 /* Volumes.h */,
A591CD5A26FF78AE00F9DBF0 /* cpu.cpp */,
A591CD5B26FF78AE00F9DBF0 /* KERNEL_AND_KEXT_PATCHES.cpp */,
A591CD5C26FF78AE00F9DBF0 /* guid.cpp */,
A591CD5D26FF78AE00F9DBF0 /* DataHub.h */,
A591CD5E26FF78AE00F9DBF0 /* Volumes.cpp */,
A591CD2A26FF78AE00F9DBF0 /* Events.h */,
A591CD5F26FF78AE00F9DBF0 /* FixBiosDsdt.cpp */,
A591CD6026FF78AE00F9DBF0 /* spd.h */,
A591CD6126FF78AE00F9DBF0 /* FixBiosDsdt.h */,
A591CD6226FF78AE00F9DBF0 /* usbfix.cpp */,
A591CD6326FF78AE00F9DBF0 /* card_vlist.cpp */,
A591CD3A26FF78AE00F9DBF0 /* gma.cpp */,
A591CCE426FF78AE00F9DBF0 /* gma.h */,
A591CD5C26FF78AE00F9DBF0 /* guid.cpp */,
A591CD2C26FF78AE00F9DBF0 /* guid.h */,
A591CD3C26FF78AE00F9DBF0 /* hda.cpp */,
A591CD2226FF78AE00F9DBF0 /* hda.h */,
A591CD0726FF78AE00F9DBF0 /* HdaCodecDump.cpp */,
A591CD3E26FF78AE00F9DBF0 /* HdaCodecDump.h */,
A591CD1026FF78AE00F9DBF0 /* Hibernate.cpp */,
A591CD0826FF78AE00F9DBF0 /* Hibernate.h */,
A591CD2E26FF78AE00F9DBF0 /* Injectors.cpp */,
A591CD1B26FF78AE00F9DBF0 /* Injectors.h */,
A591CD5B26FF78AE00F9DBF0 /* KERNEL_AND_KEXT_PATCHES.cpp */,
A591CD3226FF78AE00F9DBF0 /* KERNEL_AND_KEXT_PATCHES.h */,
A591CD3926FF78AE00F9DBF0 /* kernel_patcher.cpp */,
A591CD1326FF78AE00F9DBF0 /* kernel_patcher.h */,
A591CD2726FF78AE00F9DBF0 /* kext_inject.cpp */,
A591CD4726FF78AE00F9DBF0 /* kext_inject.h */,
A591CD0926FF78AE00F9DBF0 /* kext_patcher.cpp */,
A591CD5626FF78AE00F9DBF0 /* KextList.cpp */,
A591CD1926FF78AE00F9DBF0 /* KextList.h */,
A591CD2F26FF78AE00F9DBF0 /* LegacyBiosThunk.cpp */,
A591CD4B26FF78AE00F9DBF0 /* LegacyBiosThunk.h */,
A591CD0426FF78AE00F9DBF0 /* LegacyBoot.cpp */,
A591CD2626FF78AE00F9DBF0 /* LegacyBoot.h */,
A591CD3626FF78AE00F9DBF0 /* MacOsVersion.cpp */,
A591CD0326FF78AE00F9DBF0 /* MacOsVersion.h */,
A591CD4226FF78AE00F9DBF0 /* MemoryOperation.c */,
A591CD0226FF78AE00F9DBF0 /* MemoryOperation.h */,
A591CD0B26FF78AE00F9DBF0 /* memvendors.h */,
A591CD5226FF78AE00F9DBF0 /* nvidia.cpp */,
A591CD2926FF78AE00F9DBF0 /* nvidia.h */,
A591CD2826FF78AE00F9DBF0 /* Nvram.cpp */,
A591CD1A26FF78AE00F9DBF0 /* Nvram.h */,
A591CD3F26FF78AE00F9DBF0 /* platformdata.cpp */,
A591CD4526FF78AE00F9DBF0 /* platformdata.h */,
A591CD1C26FF78AE00F9DBF0 /* PlatformDriverOverride.cpp */,
A591CD2B26FF78AE00F9DBF0 /* PlatformDriverOverride.h */,
A591CCE526FF78AE00F9DBF0 /* plist */,
A591CD6426FF78AE00F9DBF0 /* Settings.cpp */,
A591CD1826FF78AE00F9DBF0 /* Settings.h */,
A591CD4326FF78AE00F9DBF0 /* Settings.h.orig */,
A591CD1726FF78AE00F9DBF0 /* SettingsUtils.cpp */,
A591CD3126FF78AE00F9DBF0 /* SettingsUtils.h */,
A591CD5526FF78AE00F9DBF0 /* smbios.cpp */,
A591CD5326FF78AE00F9DBF0 /* smbios.h */,
A591CD3326FF78AE00F9DBF0 /* SmbiosFillPatchingValues.cpp */,
A591CD0626FF78AE00F9DBF0 /* SmbiosFillPatchingValues.h */,
A591CD4A26FF78AE00F9DBF0 /* sound.cpp */,
A591CD3D26FF78AE00F9DBF0 /* spd.cpp */,
A591CD6026FF78AE00F9DBF0 /* spd.h */,
A591CD1E26FF78AE00F9DBF0 /* sse3_5_patcher.h */,
A591CD3826FF78AE00F9DBF0 /* sse3_patcher.h */,
A591CD4126FF78AE00F9DBF0 /* StartupSound.cpp */,
A591CD1F26FF78AE00F9DBF0 /* StartupSound.h */,
A591CD1226FF78AE00F9DBF0 /* StateGenerator.cpp */,
A591CD0A26FF78AE00F9DBF0 /* StateGenerator.h */,
A591CD6226FF78AE00F9DBF0 /* usbfix.cpp */,
A591CD0C26FF78AE00F9DBF0 /* usbfix.h */,
A591CD0F26FF78AE00F9DBF0 /* Utils.cpp */,
A591CD0526FF78AE00F9DBF0 /* Utils.h */,
A591CD4C26FF78AE00F9DBF0 /* VersionString.cpp */,
A591CD5826FF78AE00F9DBF0 /* VersionString.h */,
A591CD6526FF78AE00F9DBF0 /* Volume.cpp */,
A591CD5726FF78AE00F9DBF0 /* Volume.h */,
A591CD5E26FF78AE00F9DBF0 /* Volumes.cpp */,
A591CD5926FF78AE00F9DBF0 /* Volumes.h */,
);
path = Platform;
sourceTree = "<group>";