Skip to content

Commit 670e8a8

Browse files
authored
Replace pc component with unknown in stdlib/CMakeLists.txt
1 parent 426c4f9 commit 670e8a8

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

stdlib/public/CMakeLists.txt

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -194,8 +194,10 @@ if(SWIFT_SHOULD_BUILD_EMBEDDED_STDLIB)
194194
list(APPEND EMBEDDED_STDLIB_TARGET_TRIPLES
195195
"i686 i686-unknown-none-elf i686-unknown-none-elf"
196196
"x86_64 x86_64-unknown-none-elf x86_64-unknown-none-elf"
197-
"i686 i686-pc-windows-coff i686-pc-windows-coff"
198-
"x86_64 x86_64-pc-windows-coff x86_64-pc-windows-coff"
197+
# Without specifying the `windows` component LLVM refuses to
198+
# generate valid COFF object files.
199+
"i686 i686-unknown-windows-coff i686-unknown-windows-coff"
200+
"x86_64 x86_64-unknown-windows-coff x86_64-unknown-windows-coff"
199201
)
200202
endif()
201203

0 commit comments

Comments
 (0)