mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 09:45:31 +00:00
udp: fix build failure; fix scripts/run-aquatic-udp.sh
This commit is contained in:
parent
a665b38536
commit
ce1c0b24c3
2 changed files with 10 additions and 6 deletions
|
|
@ -2,11 +2,13 @@
|
|||
|
||||
. ./scripts/env-native-cpu-without-avx-512
|
||||
|
||||
if [ "$1" != "mio" ] && [ "$1" != "glommio" ]; then
|
||||
echo "Usage: $0 [mio|glommio] [ARGS]"
|
||||
if [ "$1" != "mio" ] && [ "$1" != "glommio" ] && [ "$1" != "io-uring" ]; then
|
||||
echo "Usage: $0 [mio|glommio|io-uring] [ARGS]"
|
||||
else
|
||||
if [ "$1" = "mio" ]; then
|
||||
cargo run --release --bin aquatic_udp -- "${@:2}"
|
||||
elif [ "$1" = "io-uring" ]; then
|
||||
cargo run --release --features "with-io-uring" --no-default-features --bin aquatic_udp -- "${@:2}"
|
||||
else
|
||||
cargo run --release --features "with-glommio" --no-default-features --bin aquatic_udp -- "${@:2}"
|
||||
fi
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue