| 108 | } |
| 109 | |
| 110 | static constexpr StringView buildArchitectureName(const Parameters& parameters, const Configuration& configuration) |
| 111 | { |
| 112 | Architecture::Type architecture = configuration.architecture; |
| 113 | if (architecture == Architecture::Any) |
| 114 | { |
| 115 | architecture = parameters.architecture; |
| 116 | } |
| 117 | |
| 118 | if (parameters.generator == Generator::XCode) |
| 119 | { |
| 120 | switch (architecture) |
| 121 | { |
| 122 | case Architecture::Intel64: return "x86_64"; |
| 123 | case Architecture::Arm64: return "arm64"; |
| 124 | case Architecture::Any: return "arm64 x86_64"; |
| 125 | case Architecture::Intel32: |
| 126 | case Architecture::Wasm: return "unsupported"; |
| 127 | } |
| 128 | } |
| 129 | else if (parameters.generator == Generator::VisualStudio2019 or parameters.generator == Generator::VisualStudio2022) |
| 130 | { |
| 131 | if (architecture == Architecture::Any) |
| 132 | { |
| 133 | architecture = hostArchitecture(); |
| 134 | } |
| 135 | switch (architecture) |
| 136 | { |
| 137 | case Architecture::Intel32: return "x86"; |
| 138 | case Architecture::Intel64: return "x64"; |
| 139 | case Architecture::Arm64: return "ARM64"; |
| 140 | case Architecture::Any: |
| 141 | case Architecture::Wasm: return "unsupported"; |
| 142 | } |
| 143 | } |
| 144 | else |
| 145 | { |
| 146 | if (architecture == Architecture::Any) |
| 147 | { |
| 148 | architecture = hostArchitecture(); |
| 149 | } |
| 150 | switch (architecture) |
| 151 | { |
| 152 | case Architecture::Intel32: return "x86"; |
| 153 | case Architecture::Intel64: return "x86_64"; |
| 154 | case Architecture::Arm64: return "arm64"; |
| 155 | case Architecture::Any: |
| 156 | case Architecture::Wasm: return "unsupported"; |
| 157 | } |
| 158 | } |
| 159 | Assert::unreachable(); |
| 160 | } |
| 161 | |
| 162 | static constexpr StringView buildSystemName(Generator::Type generator) |
| 163 | { |
no test coverage detected