We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4210fd4 commit 889c402Copy full SHA for 889c402
test.sh
@@ -18,6 +18,7 @@ flags=
18
gcc_master_branch=1
19
channel="debug"
20
func=all
21
+build_only=0
22
23
while [[ $# -gt 0 ]]; do
24
case $1 in
@@ -72,6 +73,10 @@ while [[ $# -gt 0 ]]; do
72
73
func=build_sysroot
74
shift
75
;;
76
+ "--build")
77
+ build_only=1
78
+ shift
79
+ ;;
80
*)
81
echo "Unknown option $1"
82
exit 1
@@ -89,7 +94,7 @@ else
89
94
cargo rustc $flags
90
95
fi
91
96
92
-if [[ "$1" == "--build" ]]; then
97
+if (( $build_only == 1 )); then
93
98
exit
99
100
0 commit comments