Merge pull request #236490 from alyssais/cargo-strip
This commit is contained in:
commit
82ee5cb909
1 changed files with 4 additions and 0 deletions
|
@ -5,6 +5,10 @@ cargoBuildHook() {
|
|||
|
||||
runHook preBuild
|
||||
|
||||
# Let stdenv handle stripping, for consistency and to not break
|
||||
# separateDebugInfo.
|
||||
export "CARGO_PROFILE_${cargoBuildType@U}_STRIP"=false
|
||||
|
||||
if [ ! -z "${buildAndTestSubdir-}" ]; then
|
||||
# ensure the output doesn't end up in the subdirectory
|
||||
export CARGO_TARGET_DIR="$(pwd)/target"
|
||||
|
|
Loading…
Reference in a new issue