phil-opp/cargo-post

Support `CARGO_BUILD_TARGET` environment variable

Open

#24 opened on Oct 30, 2023

 (1 comment) (0 reactions) (0 assignees)Rust (7 forks)github user discovery
buggood first issuehelp wanted

Repository metrics

Stars
 (24 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Currently, it appears that cargo-post ignores the $CARGO_BUILD_TARGET environment variable, resulting in it passing incorrect CRATE_TARGET/CRATE_TARGET_TRIPLE/CRATE_OUT_DIR variables to the post-build script.

Pseudo-related to #2, given that the environment variable is another way of specifying the build.target configuration key.

Contributor guide