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

Create a way to extract specific dylibs #10

Closed
rubenvb opened this issue Feb 28, 2023 · 2 comments
Closed

Create a way to extract specific dylibs #10

rubenvb opened this issue Feb 28, 2023 · 2 comments

Comments

@rubenvb
Copy link

rubenvb commented Feb 28, 2023

Usually you don't need all libraries in the cache, and only want specific ones for your use case.

e.g. icecc-create-env would only want a very limited subset of the total cache (two or three dylibs), as suggested (by me) as a solution for the macOS issues present in the current system: icecc/icecream#592 (comment)

@keith
Copy link
Owner

keith commented Mar 14, 2023

Currently the way this tool works is it uses the "supported" interface of a dylib shipped by Apple to extract the dylibs. The only 2 functions offered by that dylib extract the entire shared cache. Theoretically we could copy-paste more of what those functions are doing (without copying too much making the tool incompatible with newer shared cache versions), but that's probably not a great option.

We could provide better UX from this tool to extract everything but only copy over the ones you care about and toss the rest after it's done, the biggest downside being performance would be the same as today. Would that solve your case?

@rubenvb
Copy link
Author

rubenvb commented Apr 18, 2023

In retrospect it may be just easier to use the extraction directory to find the libraries required.
Or the more future-proof option, let the icecc chroot use the host's libraries...

Thanks for the insight, your answer makes sense and isn't really something your tool should be handling itself IMHO.
Better to keep it simple, functional and maintainable.

@keith keith closed this as not planned Won't fix, can't repro, duplicate, stale Apr 18, 2023
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

No branches or pull requests

2 participants