Skip to content
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

[NFC] PkgConfigTests: use some FileSystem instead of existentials #6284

Closed
wants to merge 1 commit into from

Conversation

MaxDesiatov
Copy link
Contributor

@MaxDesiatov MaxDesiatov commented Mar 15, 2023

This is a small optimization that avoids the use of boxing for existentials. Without it applying swiftlang/swift-tools-support-core#401 to TSCBasic dependency and its localFileSystem declaration will break compilation for this test.

This is a small optimization that avoids the use of boxing for existentials.
@MaxDesiatov
Copy link
Contributor Author

@MaxDesiatov
Copy link
Contributor Author

@MaxDesiatov
Copy link
Contributor Author

MaxDesiatov commented Mar 15, 2023

The Linux self-hosted failure is due to lack of cross-repo testing support, and macOS failure looks like a compiler bug in the older version of Swift we still have on CI? This isn't reproducible with either Swift 5.7 or 5.8 on macOS.

error: cannot assign value of type 'some FileSystem' (type of 'localFileSystem') to type 'some FileSystem' 

@neonichu
Copy link
Contributor

Maybe a new bug? macOS smoke tests should be using the compiler built from main

@MaxDesiatov
Copy link
Contributor Author

MaxDesiatov commented Mar 16, 2023

I see in the smoke test job it's passing the Xcode compiler explicitly during bootstrapping:

-DCMAKE_Swift_COMPILER:=/Applications/Xcode-beta.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swiftc

Should we modify the bootstrapping script to use the freshly built compiler instead?

@neonichu
Copy link
Contributor

Should we modify the bootstrapping script to use the freshly built compiler instead?

I think so, yes

@MaxDesiatov
Copy link
Contributor Author

@swift-ci smoke test

@MaxDesiatov MaxDesiatov deleted the maxd/pkgconfig-some-filesystem branch April 14, 2023 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants