Skip to content

Commit 288c067

Browse files
committed
Set panic=abort for the build system
This saves about 60ms of build time
1 parent be8f656 commit 288c067

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

y.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
# This block is ignored by rustc
44
set -e
55
echo "[BUILD] y.rs" 1>&2
6-
rustc $0 -o ${0/.rs/.bin} -Cdebuginfo=1 --edition 2021
6+
rustc $0 -o ${0/.rs/.bin} -Cdebuginfo=1 --edition 2021 -Cpanic=abort
77
exec ${0/.rs/.bin} $@
88
*/
99

0 commit comments

Comments
 (0)