-
Notifications
You must be signed in to change notification settings - Fork 325
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fatalErrror trying to run tests on Windows #584
Comments
@compnerd any ideas here? All of the errors listed here seem wrong The warnings about |
@rauhul hmm, I think that the The fatal error is related to the missing |
Correct the use of implementation only was to avoid leaking api, but it also can produce complete broken code for non resilient libraries.
Is this a windows specific thing? |
No, this is a general Swift issue. swiftlang/swift#56843 was the original bit of discussion around this, and there has always been a requirement to pass |
@compnerd I'm a bit confused. @main seems to work on Mac (and Linux IIRC) without that flag. Is this due to Windows having a stricter symbol linking model? If it's going to be a general requirement we should diagnose failures to pass the flag (on all platforms) rather than trapping in the compiler, right? |
@dabrahams no this behavior is not windows specific. The issue is reported by the frontend if you note. This really should be diagnosed on all platforms. |
Replace this paragraph with a short description of the incorrect incorrect behavior. If this is a regression, please note the last version that the behavior was correct in addition to your current version.
ArgumentParser version: the
main
branchSwift version:
Swift version 5.9-dev (LLVM ad32770d6738638, Swift 753d54576e043ca)
Target: aarch64-unknown-windows-msvc
Checklist
main
branch of this packageSteps to Reproduce
Check it out on Windows. "swift test"
Expected behavior
All tests pass.
Actual behavior
The text was updated successfully, but these errors were encountered: