swiftlang / vscode-swift

Visual Studio Code Extension for Swift
https://marketplace.visualstudio.com/items?itemName=sswg.swift-lang
Apache License 2.0
705 stars 47 forks source link

Fix linker error when building Windows tests w/ coverage #942

Open plemarquand opened 3 days ago

plemarquand commented 3 days ago

This fixes the fatalError seen on Windows when attempting to build tests with code coverage enabled. The linker doesn't allow duplicate symbols by default on Windows, while this is OK on macOS/Linux.

Use the -lldmingw linker flag to work around this issue.