mirror of
https://github.com/llvm/llvm-project.git
synced 2025-04-18 07:16:40 +00:00
[MachO] using std::size_t to fix build errors on arm-ubuntu
Fix build failure introduced by commit 6a3604ef8592edf39fedd6af8100aefafd6d931d Signed-off-by: Peter Rong <PeterRong@meta.com>
This commit is contained in:
parent
3210bce90f
commit
b3b6f7cb0b
@ -1042,12 +1042,12 @@ static bool shouldAdhocSignByDefault(Architecture arch, PlatformType platform) {
|
||||
platform == PLATFORM_XROS_SIMULATOR;
|
||||
}
|
||||
|
||||
template <unsigned long N>
|
||||
template <std::size_t N>
|
||||
using MinVersions = std::array<std::pair<PlatformType, VersionTuple>, N>;
|
||||
|
||||
/// Returns true if the platform is greater than the min version.
|
||||
/// Returns false if the platform does not exist.
|
||||
template <unsigned long N>
|
||||
template <std::size_t N>
|
||||
static bool greaterEqMinVersion(const MinVersions<N> &minVersions,
|
||||
bool ignoreSimulator) {
|
||||
PlatformType platform = config->platformInfo.target.Platform;
|
||||
|
Loading…
x
Reference in New Issue
Block a user