mirror of
https://github.com/dashpay/dash.git
synced 2024-12-29 13:59:06 +01:00
a33756c72e
32da92bdf6bb55d6d312b0f85797d439cc942db5 gitian: Improve error handling (Wladimir J. van der Laan) Pull request description: Improve error handling in gitian builds: - Set fail-on-error and pipefail flag, this causes a command to fail when either of the pipe stages fails, not only when the last of the stages fails, so this improves error detection. - Also use `xargs` instead of `find -exec`, because `find` will not propagate errors in the executed command, but `xargs` will. This will avoid some issues like #15541 where non-determinism is silently introduced due to errors caused by environment conditions (such as lack of disk space in that case). Tree-SHA512: d5d3f22ce2d04a75e5c25e935744327c3adc704c2d303133f2918113573a564dff3d3243d5569a2b93ee7eb0e97f8e1b1ba81767e966af9015ea711a14091035
11 lines
359 B
Bash
11 lines
359 B
Bash
#!/bin/sh
|
|
set -e
|
|
if [ $# -ne 3 ];
|
|
then echo "usage: $0 <input> <stripped-binary> <debug-binary>"
|
|
fi
|
|
|
|
@OBJCOPY@ --enable-deterministic-archives -p --only-keep-debug $1 $3
|
|
@OBJCOPY@ --enable-deterministic-archives -p --strip-debug $1 $2
|
|
@STRIP@ --enable-deterministic-archives -p -s $2
|
|
@OBJCOPY@ --enable-deterministic-archives -p --add-gnu-debuglink=$3 $2
|