We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7be4f6e + fd8d0cf commit a5b8982Copy full SHA for a5b8982
Sources/SwiftDriver/Jobs/GenericUnixToolchain+LinkerSupport.swift
@@ -18,7 +18,10 @@ import struct TSCBasic.AbsolutePath
18
extension GenericUnixToolchain {
19
private func majorArchitectureName(for triple: Triple) -> String {
20
// The concept of a "major" arch name only applies to Linux triples
21
- guard triple.os == .linux else { return triple.archName }
+ // We change spellings for amd64/x86_64 for OpenBSD here too to match LLVM.
22
+ guard triple.os == .linux || triple.os == .openbsd else { return triple.archName }
23
+
24
+ if triple.os == .openbsd && triple.archName == "amd64" { return "x86_64" }
25
26
// HACK: We don't wrap LLVM's ARM target architecture parsing, and we should
27
// definitely not try to port it. This check was only normalizing
0 commit comments