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

Add per-target link flags in the right place #2963

Merged

Conversation

illicitonion
Copy link
Collaborator

Previously we were adding these early on in the link args.

This was a bug - if some transitive dep foo has a linkopt of -lbar, the -lbar needs to be later in the link args list than -lfoo.

Rather than arbitrarily adding them early on and hoping things work, this adds the args for each library just after we add a dependency on that library.

Previously we were adding these early on in the link args.

This was a bug - if some transitive dep foo has a linkopt of `-lbar`,
the `-lbar` needs to be later in the link args list than `-lfoo`.

Rather than arbitrarily adding them early on and hoping things work,
this adds the args for each library just after we add a dependency on
that library.
@illicitonion illicitonion added this pull request to the merge queue Oct 26, 2024
Merged via the queue into bazelbuild:main with commit c603a77 Oct 26, 2024
4 checks passed
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.

2 participants