You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This was changed in #6026. This was changed because we had a lot of reports of cargo install thing-from-crates.io cross compiling because the cwd happend to be in a embedded project.
Problem
Cargo install
command doesn't read therustflags
setting in.cargo/config
Steps
In order to fix a linker issue on macOS (https://github.com/alexcrichton/git2-rs/issues/180), i have to use something like:
RUSTFLAGS='-L /usr/lib' cargo build
.And I put this flag inside
{project-folder}/.cargo/config
file:This works for
cargo build
, but notcargo install
It looks like
cargo install
ignores that setting.I have to use
RUSTFLAGS='-L /usr/lib' cargo install --path .
to make it work again.i also tried something like:
No luck either.
Notes
Output of
cargo version
:Operating System: macOS High Sierra, 10.13.6
I have
edition = "2018"
inCargo.toml
The text was updated successfully, but these errors were encountered: