-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[test] Test compiling the overlay swiftinterfaces to binary form #19438
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
Conversation
2258a84
to
7960ab8
Compare
I really hope this list isn't platform-dependent, or else I have to make my expected output checking cleverer. @swift-ci Please test |
@@ -0,0 +1,25 @@ | |||
// RUN: %empty-directory(%t) | |||
// RUN: for x in %platform-sdk-overlay-dir/*.swiftinterface; do [[ $(basename "$x") = Swift.swiftinterface || $(basename "$x") = simd.swiftinterface ]] && continue; %target-swift-frontend "$x" -emit-module -o %t/$(basename "${x/.*}").swiftmodule -disable-objc-attr-requires-foundation-module -enable-resilience -Fsystem %sdk/System/Library/PrivateFrameworks/ || echo -swift-version 4 $(basename "$x") >> %t/failures.txt; done |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like a lot for a RUN line, but I suppose it's alright.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:-( Yeah. I could pull it out into some kind of script, I guess? But it's also in SIL/verify_all_overlays.sil.
7960ab8
to
98bd3bf
Compare
@swift-ci Please test |
Build failed |
Build failed |
I guess I need to make the failures platform-specific after all. |
98bd3bf
to
7b04705
Compare
This still isn't 100% correct because master has fixes that I haven't built with locally, but at least it allows different platforms to be different. @swift-ci Please test |
macosx: ObjectiveC.swiftinterface | ||
ios: ObjectiveC.swiftinterface | ||
tvos: ObjectiveC.swiftinterface | ||
watchos: ObjectiveC.swiftinterface |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this one was fixed already.
macosx: Foundation.swiftinterface | ||
ios: Foundation.swiftinterface | ||
tvos: Foundation.swiftinterface | ||
watchos: Foundation.swiftinterface |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think this is just #19472.
// Needs to be built as Swift 3. | ||
ios: CoreGraphics.swiftinterface | ||
tvos: CoreGraphics.swiftinterface | ||
watchos: CoreGraphics.swiftinterface |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one's about to change; see #19598.
Build failed |
Build failed |
7b04705
to
cce8b05
Compare
Waiting for #19598. |
@swift-ci Please test |
Build failed |
Build failed |
Let's not regress!