MCPcopy Create free account
hub / github.com/Pagghiu/SaneCppLibraries / supportMatrixContains

Function supportMatrixContains

Tests/Libraries/Build/BuildTest.cpp:51–69  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49}
50
51static bool supportMatrixContains(Span<const Build::SupportMatrixEntry> matrix, Build::Platform::Type hostPlatform,
52 Build::TargetEnvironment::Type targetEnvironment,
53 Build::Architecture::Type targetArchitecture, Build::SupportStatus::Type buildSupport,
54 Build::SupportStatus::Type runSupport, Build::SupportTier::Type tier,
55 Build::RunnerSpec::Type runner)
56{
57 for (const Build::SupportMatrixEntry& entry : matrix)
58 {
59 if (entry.hostMachine.platform == hostPlatform and
60 entry.hostMachine.environment == Build::TargetEnvironment::Native and
61 entry.targetMachine.environment == targetEnvironment and
62 entry.targetMachine.architecture == targetArchitecture and entry.buildSupport == buildSupport and
63 entry.runSupport == runSupport and entry.tier == tier and entry.runner == runner)
64 {
65 return true;
66 }
67 }
68 return false;
69}
70
71static constexpr StringView supportMatrixHostName(Build::Platform::Type platform)
72{

Callers 1

BuildTestMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected