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

Propagate Swift-specific linker flags as an implicit dependency of the toolchain. #1186

Merged
merged 2 commits into from Jun 11, 2021

Conversation

segiddins
Copy link
Contributor

Propagate Swift-specific linker flags as an implicit dependency of the toolchain.

Apple binaries/bundles will automatically get these linker flags if they have any Swift target in their dependencies; this eliminates the need to pass them separately at the top level.

PiperOrigin-RevId: 378024438
(cherry picked from commit c253e4f)

Conflicts:

apple/internal/binary_support.bzl

@segiddins segiddins requested a review from keith June 10, 2021 22:01
@google-cla
Copy link

google-cla bot commented Jun 10, 2021

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@google-cla google-cla bot added the cla: no label Jun 10, 2021
swiftdeps = [x for x in ctx.rule.attr.deps if SwiftInfo in x]
ccinfos = [x for x in ctx.rule.attr.deps if CcInfo in x]
swiftdeps = [x for x in [target] if SwiftInfo in x]
ccinfos = [x for x in [target] if CcInfo in x]
Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor

Choose a reason for hiding this comment

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

This is great! It cleans up the implementation a lot and makes more sense without the swift_runtime_linkopts dependency

@segiddins segiddins force-pushed the segiddins/c253e4fa18d6f95ac065021b28662c4ddb37b149 branch from 923543e to 39f6a6b Compare June 11, 2021 17:35
@google-cla
Copy link

google-cla bot commented Jun 11, 2021

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@segiddins
Copy link
Contributor Author

Now passing with HEAD deps, so we should be able to merge this once we cut a rules_swift release

@lyft-lint-bot
Copy link

Lyft integration job started: https://buildkite.com/lyft/ios/builds/705959#a7effed9-8c0b-4888-9cfc-d9487add73d7 (must be Lyft employee to view)

allevato and others added 2 commits June 11, 2021 14:14
…e toolchain.

Apple binaries/bundles will automatically get these linker flags if they have any Swift target in their dependencies; this eliminates the need to pass them separately at the top level.

PiperOrigin-RevId: 378024438
(cherry picked from commit c253e4f)

# Conflicts:
#	apple/internal/binary_support.bzl
@segiddins segiddins force-pushed the segiddins/c253e4fa18d6f95ac065021b28662c4ddb37b149 branch from 39f6a6b to 83a1246 Compare June 11, 2021 19:15
@google-cla
Copy link

google-cla bot commented Jun 11, 2021

All (the pull request submitter and all commit authors) CLAs are signed, but one or more commits were authored or co-authored by someone other than the pull request submitter.

We need to confirm that all authors are ok with their commits being contributed to this project. Please have them confirm that by leaving a comment that contains only @googlebot I consent. in this pull request.

Note to project maintainer: There may be cases where the author cannot leave a comment, or the comment is not properly detected as consent. In those cases, you can manually confirm consent of the commit author(s), and set the cla label to yes (if enabled on your project).

ℹ️ Googlers: Go here for more info.

@keith
Copy link
Member

keith commented Jun 11, 2021

passed for us

@segiddins segiddins merged commit d0fd263 into master Jun 11, 2021
@segiddins segiddins deleted the segiddins/c253e4fa18d6f95ac065021b28662c4ddb37b149 branch June 11, 2021 19:28
thii referenced this pull request Aug 4, 2021
…e toolchain.

Apple binaries/bundles will automatically get these linker flags if they have any Swift target in their dependencies; this eliminates the need to pass them separately at the top level.

PiperOrigin-RevId: 378024438
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants