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

Fix bug that resulted in empty linker flags on MacOS [AP-3221] #147

Merged
merged 1 commit into from
Dec 19, 2024

Conversation

sbmueller
Copy link
Contributor

@sbmueller sbmueller commented Dec 19, 2024

In 9b5d663, a bug was introduced that resulted in empty linker flags
on MacOS. In Starlark, [a] + [b] if c else [] results in [], if c is False. To
just make [b] conditional, parenthesis must be used: [a] + ([b] if c else []).

@sbmueller sbmueller requested a review from a team as a code owner December 19, 2024 09:27
In `9b5d663`, a bug was introduced that resulted in empty linker flags
on MacOS. In Starlark, `[a] + [b] if c else []` results in `[]`, if `c` is False. To
just make `[b]` conditional, parenthesis must be used: `[a] + ([b] if c
else [])`.
@sbmueller sbmueller force-pushed the smuller/AP-3221-fix-linker-flags branch from 1a9bb41 to aa9019f Compare December 19, 2024 09:31
@sbmueller sbmueller changed the title Fix bug that resulted in empty linker flags [AP-3221] Fix bug that resulted in empty linker flags on MacOS [AP-3221] Dec 19, 2024
Copy link

@armallen armallen left a comment

Choose a reason for hiding this comment

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

Awesome!

@sbmueller sbmueller merged commit 8d9b80a into main Dec 19, 2024
1 check passed
@sbmueller sbmueller deleted the smuller/AP-3221-fix-linker-flags branch December 19, 2024 11:05
Copy link

@junc52 junc52 left a comment

Choose a reason for hiding this comment

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

Respect to find this!

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