Set panic=abort for the build system
This saves about 60ms of build time
This commit is contained in:
parent
be8f656fac
commit
288c067863
1 changed files with 1 additions and 1 deletions
2
y.rs
2
y.rs
|
@ -3,7 +3,7 @@
|
||||||
# This block is ignored by rustc
|
# This block is ignored by rustc
|
||||||
set -e
|
set -e
|
||||||
echo "[BUILD] y.rs" 1>&2
|
echo "[BUILD] y.rs" 1>&2
|
||||||
rustc $0 -o ${0/.rs/.bin} -Cdebuginfo=1 --edition 2021
|
rustc $0 -o ${0/.rs/.bin} -Cdebuginfo=1 --edition 2021 -Cpanic=abort
|
||||||
exec ${0/.rs/.bin} $@
|
exec ${0/.rs/.bin} $@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue