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

improve error message for deduced executableTarget #3254

Merged
merged 1 commit into from Feb 11, 2021

Conversation

tomerd
Copy link
Member

@tomerd tomerd commented Feb 10, 2021

motivation: include the name of the target in the warning so its more actionable

changes: add the target name in the "use executableTarget in 5.4" warning

motivation: include the name of the target in the warning so its more actionable

changes: add the target name in the "use executableTarget in 5.4" warning

rdar://74045851
@tomerd
Copy link
Member Author

tomerd commented Feb 10, 2021

@swift-ci please smoke test

@tomerd
Copy link
Member Author

tomerd commented Feb 11, 2021

@abertelrud

Copy link
Contributor

@abertelrud abertelrud left a comment

Choose a reason for hiding this comment

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

Thanks for the fix! LGTM

@tomerd tomerd merged commit f2146ac into apple:main Feb 11, 2021
neonichu added a commit that referenced this pull request Apr 9, 2024
The determination for executable targets isn't limited to Swift files, it will also find 'main.m' for example. This was originally reflected in the diagnostic, but #3254 updated it incorrectly.
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.

None yet

2 participants