Skip to content

[Diagnostics][Darwin] Diagnose libarclite not found on darwin toolchain #26261

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

LucianoPAlmeida
Copy link
Contributor

Hey guys :)
Note a FIXME comment about diagnostics that could be done when linking to objc runtime, but the place was not a good one to emit diagnostics since it is in the construct invocation.
And since now there is a method in the toolchain to perform validations, thought that may be a good idea to handle that diagnostic there.

What do you think? cc @jrose-apple @brentdax

Obs: not sure if this diagnose message is good, maybe could be a better one :))

Copy link
Contributor

@jrose-apple jrose-apple left a comment

Choose a reason for hiding this comment

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

Good find! I think we should probably go with a warning to not break anyone's existing flow, even if it's not quite doing what the usual default behavior is. (That means keeping the "if it doesn't exist" behavior too.) It's a little unfortunate that it'll have to run xcrun twice, but that's not the end of the world.

Do you think we should mention the -no-link-objc-runtime flag to silence the warning?

Copy link
Contributor

@beccadax beccadax left a comment

Choose a reason for hiding this comment

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

Almost there!

@LucianoPAlmeida LucianoPAlmeida force-pushed the fixme-diagnose-darwin-toolchain-arclib branch from c5cd80e to 49efa57 Compare July 23, 2019 22:30
@beccadax
Copy link
Contributor

@swift-ci please test

@LucianoPAlmeida
Copy link
Contributor Author

The tests passed, so this should be good to go? :))

@beccadax
Copy link
Contributor

beccadax commented Aug 2, 2019

@swift-ci please smoke test and merge

@swift-ci swift-ci merged commit c4c240d into swiftlang:master Aug 2, 2019
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.

4 participants