Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
431: Allow users to pick cargo for custom target builds r=reitermarkus a=anupdhml This is an attempt to fix #325. We want to use the target `x86_64-alpine-linux-musl` (available from alpine's rustc) to build musl-based binaries and when using cross with something not in the standard rustc/rustup targets, cross errors out as detailed in the issue above. For a non-standard target, cross defaults to using `xargo` right now (behavior introduced in #217), but in our case, since we want `cargo` to run ultimately, I had to also ensure that setting `xargo = false` actually works from the cross config file. If there's a better way of handling this without breaking the current default behavior, please let me know. Also updated the docs on xargo usage accordingly (including the parts that were lagging even without this PR). --- A working example of cross use based on the changes here are available at: https://github.com/wayfair-tremor/tremor-runtime/blob/f72e133f971adca67f6e6b6e265a4f5d5e96380d/Cross.toml#L30-L37 --- Thanks for providing a tool like cross btw! It's been really useful to us as we are looking to streamline our release process 😃 Co-authored-by: Anup Dhamala <[email protected]>
- Loading branch information