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 1721f18 commit 20b9961Copy full SHA for 20b9961
run
@@ -140,16 +140,18 @@ done
140
shift "$(($OPTIND - 1))"
141
extra_flags="$extra_flags $@"
142
OPTIND=1
143
-while getopts b OPT $extra_opts; do
144
- case "$OPT" in
145
- b)
146
- gem5_fsbiglittle=true
147
- ;;
148
- ?)
149
- exit 2
150
151
- esac
152
-done
+if [ -n "$extra_opts" ]; then
+ while getopts b OPT $extra_opts; do
+ case "$OPT" in
+ b)
+ gem5_fsbiglittle=true
+ ;;
+ ?)
+ exit 2
+ esac
153
+ done
154
+fi
155
set_common_vars -L "$common_linux_variant" -M "$common_gem5_variant" -n "$common_run_id" "$arch" "$gem5"
156
if "$debug" && "$kvm"; then
157
echo 'error: -d and -K are incompatible' 1>&2
0 commit comments