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

Makefile: allow setting KEEP_SYMBOLS=1 #3236

Merged
merged 1 commit into from
Feb 14, 2025

Conversation

AkihiroSuda
Copy link
Member

The symbols are needed for applying gomodjail (library sandbox) to Lima. https://github.com/AkihiroSuda/gomodjail

This grows the limactl binary from 27M to 30M.

Ideally, Makefile should rather separate the install-split target from the install target as in GNU's C programs.
However, this is not possible with the current version of Go, as there is no go tool strip command.

The symbols are needed for applying gomodjail (library sandbox) to Lima.
https://github.com/AkihiroSuda/gomodjail

This grows the `limactl` binary from 27M to 30M.

Ideally, Makefile should rather separate the `install-split` target from the
`install` target as in GNU's C programs.
However, this is not possible with the current version of Go, as there is no
`go tool strip` command.

Signed-off-by: Akihiro Suda <[email protected]>
@AkihiroSuda AkihiroSuda added this to the v1.1 (tentative) milestone Feb 14, 2025
Copy link
Member

@jandubois jandubois left a comment

Choose a reason for hiding this comment

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

Thanks, LGTM

I wonder if there should be an error if the setting is neither 0 or 1, but maybe that would just be clutter.

@jandubois jandubois merged commit fa515c8 into lima-vm:master Feb 14, 2025
30 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