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

Is this usable in conjunction with cargo-zigbuild / cargo-xwin? #167

Closed
fasterthanlime opened this issue Oct 25, 2024 · 2 comments
Closed

Comments

@fasterthanlime
Copy link

See:

Those are both already wrapper around cargo — I haven't looked into the implementation details of either (or cargo auditable itself), but before I did, I just thought I would check if you've experimented with that before / have any thoughts on the matter.

@Shnatsel
Copy link
Member

I have invested a lot of time into getting sccache working, but I haven't tried combining it with other Cargo subcommands.

cargo auditable zigbuild should probably work, and if not, it shouldn't be hard to get working. cargo auditable doesn't do anything particularly complicated in the cargo layer, it simply sets a few environment variables and then calls cargo.

cargo auditable relies on passing a flag to the linker, which may be different under these particular subcommands. But as long as the CLI interface of the linker is the same as it usually is for the target triple, everything should work fine.

So please try it and let me know how it goes, I'm curious too!

@Shnatsel
Copy link
Member

I've opened #177 to fix an incompatibility with cargo c, but I've also confirmed that Cargo subcommands in general should work with cargo auditable zigbuild and such. Feel free to open an issue if some don't.

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