Skip to content

Conversation

harlanhaskins
Copy link
Contributor

This patch adds -enable-operator-designated-types to the set of flags
serialized at the top of a .swiftinterface file, as it's used in the
standard library.

We need a better, long-term solution to staging flags like this one, but
this helps get the standard library building lazily from an interface.

@harlanhaskins
Copy link
Contributor Author

@swift-ci please smoke test

@harlanhaskins harlanhaskins force-pushed the operator-oh-would-you-help-me-place-this-call branch from 6bb60d3 to 88861ff Compare November 1, 2018 01:16
@harlanhaskins
Copy link
Contributor Author

@swift-ci please smoke test

@harlanhaskins
Copy link
Contributor Author

@swift-ci please smoke test macOS platform

@harlanhaskins harlanhaskins force-pushed the operator-oh-would-you-help-me-place-this-call branch from 88861ff to 73203fe Compare November 1, 2018 21:13
@harlanhaskins
Copy link
Contributor Author

@swift-ci please smoke test

@harlanhaskins
Copy link
Contributor Author

@swift-ci please smoke test

Copy link
Contributor

@graydon graydon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@rudkx
Copy link
Contributor

rudkx commented Nov 6, 2018

Another option here would be to remove the use of the staging option in building the stdlib, and also set LangOptions::EnableOperatorDesignatedTypes based on FrontendOptions::ParseStdlib.

@harlanhaskins
Copy link
Contributor Author

@rudkx I think that's the better way to go.

@harlanhaskins harlanhaskins force-pushed the operator-oh-would-you-help-me-place-this-call branch 2 times, most recently from 0949268 to 53e1b98 Compare November 8, 2018 17:59
@harlanhaskins harlanhaskins changed the title [ParseableInterface] Add -enable-operator-designated-types to module flags [Frontend] Remove -enable-operator-designated-types Nov 8, 2018
@harlanhaskins
Copy link
Contributor Author

@swift-ci please test

@swift-ci
Copy link
Contributor

swift-ci commented Nov 8, 2018

Build failed
Swift Test OS X Platform
Git Sha - 6bb60d3ce970610d50863b89c7aeabd95e76ec6a

@swift-ci
Copy link
Contributor

swift-ci commented Nov 8, 2018

Build failed
Swift Test Linux Platform
Git Sha - 6bb60d3ce970610d50863b89c7aeabd95e76ec6a

Copy link
Contributor

@graydon graydon left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks just as good as before!

@harlanhaskins harlanhaskins force-pushed the operator-oh-would-you-help-me-place-this-call branch 2 times, most recently from fc856d8 to 05126ec Compare November 9, 2018 23:26
Because this feature mostly exists for the standard library, turn it on
specifically. This avoids having to serialize it in the flags necessary
for parseable interfaces.
@harlanhaskins harlanhaskins force-pushed the operator-oh-would-you-help-me-place-this-call branch from 05126ec to 44f1806 Compare November 9, 2018 23:26
@harlanhaskins
Copy link
Contributor Author

@swift-ci please smoke test and merge

@harlanhaskins
Copy link
Contributor Author

@swift-ci please smoke test

@harlanhaskins harlanhaskins merged commit e4db036 into swiftlang:master Nov 12, 2018
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.

5 participants