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

Only enable linkmap if the variable exists #288

Merged
merged 1 commit into from
Nov 29, 2023

Conversation

keith
Copy link
Member

@keith keith commented Nov 29, 2023

In rules_apple we've started using cc_common.link in 1 place, which
doesn't set this variable in bazel since this is an Apple specific
feature in bazel. This means if you try to link a intents stub binary
and pass --objc_generate_linkmap the link will fail. We don't care
about generating linkmaps for that binary anyways since it's just an
intermediate artifact, so this fixes that link. This has the downside
that this could hide issues and silently not create linkmaps for links
that should support them in the future.

In rules_apple we've started using cc_common.link in 1 place, which
doesn't set this variable in bazel since this is an Apple specific
feature in bazel. This means if you try to link a intents stub binary
and pass `--objc_generate_linkmap` the link will fail. We don't care
about generating linkmaps for that binary anyways since it's just an
intermediate artifact, so this fixes that link. This has the downside
that this could hide issues and silently not create linkmaps for links
that should support them in the future.
@LoganShireSnapchat
Copy link

Thanks! I verified this fixes the issue locally.

@keith keith marked this pull request as ready for review November 29, 2023 22:15
@keith keith enabled auto-merge (squash) November 29, 2023 22:16
@keith
Copy link
Member Author

keith commented Nov 29, 2023

thanks!

@keith keith merged commit cf5b18d into master Nov 29, 2023
9 checks passed
@keith keith deleted the ks/only-enable-linkmap-if-the-variable-exists branch November 29, 2023 22:16
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.

3 participants