-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Honor Cargo's target directory when building LIBPATH
Running the tests with “cargo test --target-dir <path>” fails because "target/" doesn't exist. Rust 1.57.0 added $CARGO_TARGET_TMPDIR as a scratch directory for integration tests to use, which Cargo itself won't touch. Therefore, use $CARGO_TARGET_TMPDIR if it's available, $CARGO_TARGET_DIR otherwise, and fallback to "target" as a last resort.
- Loading branch information
Showing
1 changed file
with
30 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters