File tree 2 files changed +5
-1
lines changed
Sources/SwiftDriver/Utilities 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,7 @@ public struct Triple {
126
126
parser. components. resize ( toCount: 4 , paddingWith: " " )
127
127
parser. components [ 2 ] = " windows "
128
128
if parsedEnv? . value. environment == nil {
129
- if let objectFormat = parsedEnv? . value. objectFormat, objectFormat != . coff {
129
+ if let objectFormat = parsedEnv? . value. objectFormat {
130
130
parser. components [ 3 ] = Substring ( objectFormat. name)
131
131
} else {
132
132
parser. components [ 3 ] = " msvc "
Original file line number Diff line number Diff line change @@ -816,6 +816,9 @@ final class TripleTests: XCTestCase {
816
816
817
817
assertNormalizesEqual ( " i686-pc-windows-elf-elf " ,
818
818
" i686-pc-windows-elf " )
819
+
820
+ assertNormalizesEqual ( " i686-unknown-windows-coff " , " i686-unknown-windows-coff " )
821
+ assertNormalizesEqual ( " x86_64-unknown-windows-coff " , " x86_64-unknown-windows-coff " )
819
822
}
820
823
821
824
func testNormalizeARM( ) {
@@ -1065,6 +1068,7 @@ final class TripleTests: XCTestCase {
1065
1068
XCTAssertEqual ( . macho, Triple ( " i686---macho " ) . objectFormat)
1066
1069
1067
1070
XCTAssertEqual ( . coff, Triple ( " i686--win32 " ) . objectFormat)
1071
+ XCTAssertEqual ( . coff, Triple ( " i686-unknown-windows-coff " ) . objectFormat)
1068
1072
1069
1073
XCTAssertEqual ( . elf, Triple ( " i686-pc-windows-msvc-elf " ) . objectFormat)
1070
1074
XCTAssertEqual ( . elf, Triple ( " i686-pc-cygwin-elf " ) . objectFormat)
You can’t perform that action at this time.
0 commit comments