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 a way to set linker flags --whole-archive and --no-whole-archive per pkg #520

Merged
merged 2 commits into from Apr 10, 2024

Conversation

jocelynmass
Copy link
Contributor

Depending on the project, it might be useful to have the ability to link a package surrounded by "--whole-archive" and "--no-whole-archive" flags.
I tweaked the code to allow pkg.whole_archive option to be set to true or false. I'm completely new to Goland so the code I made is most likely garbage. I just submit this PR with the hope that someone with more skills would take over this and fully make it to the next newt release.

@sjanc
Copy link
Contributor

sjanc commented Apr 8, 2024

sorry for late reply, looks OK to me!

@m-gorecki could you look at this?

@m-gorecki
Copy link
Contributor

LGTM

@kasjer
Copy link
Contributor

kasjer commented Apr 10, 2024

@jocelynmass hi Jocelyn, your change seems ok and useful there are some conflicts due to late review. Would you care to rebase is it removing conflicts? If you don't have time I can do it. In this case I will force push resolved conflicts and it will be merged soon.
Thanks for contribution and I apologize for late review.

@jocelynmass
Copy link
Contributor Author

@kasjer thanks just fixed the merge.

@sjanc sjanc merged commit a798fcc into apache:master Apr 10, 2024
59 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.

None yet

4 participants