Skip to content

Commit 41121f1

Browse files
authored
Remove a workaround for varargs not compiling on WASI. (#1323)
This PR removes a workaround on WASI where we were avoiding a call to `withVaList()` because it miscompiled there. That problem was fixed by swiftlang/swift#84029. It was cherry-picked to 6.2, but does not appear to be fixed in 6.2 CI, so the change here only applies to 6.3 onward. ### Checklist: - [x] Code and documentation should follow the style of the [Style Guide](https://github.com/apple/swift-testing/blob/main/Documentation/StyleGuide.md). - [x] If public symbols are renamed or modified, DocC references should be updated.
1 parent 9a1fc35 commit 41121f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/Testing/Events/TimeValue.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ extension TimeValue: Codable {}
8181

8282
extension TimeValue: CustomStringConvertible {
8383
var description: String {
84-
#if os(WASI)
84+
#if os(WASI) && compiler(<6.3)
8585
// BUG: https://github.com/swiftlang/swift/issues/72398
8686
return String(describing: Duration(self))
8787
#else

0 commit comments

Comments
 (0)