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

CARGO_TARGET_DIR works, but --target-dir doesn't #115

Open
espindola opened this issue Mar 16, 2022 · 0 comments
Open

CARGO_TARGET_DIR works, but --target-dir doesn't #115

espindola opened this issue Mar 16, 2022 · 0 comments

Comments

@espindola
Copy link

With the following Cargo.toml

[package]
name = "test-udeps"
version = "0.1.0"
edition = "2021"

[dependencies]
libc = "0.2.93"

Running with CARGO_TARGET_DIR works as expected, but using --target-dir causes the error:

Compiling libc v0.2.120
error: error writing dependencies to `./target-cmd/debug/build/libc-7e6898962c1844e1/build_script_build-7e6898962c1844e1.d`: No such file or directory (os error 2)

error: could not compile `libc` due to previous error
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

1 participant