diff --git a/scripts/run-aquatic-ws.sh b/scripts/run-aquatic-ws.sh index 40be253..3a7e8a5 100755 --- a/scripts/run-aquatic-ws.sh +++ b/scripts/run-aquatic-ws.sh @@ -1,5 +1,14 @@ -#!/bin/sh +#!/bin/bash . ./scripts/env-native-cpu-without-avx-512 -cargo run --release --bin aquatic_ws -- $@ +if [[ -z $1 ]]; then + echo "Usage: $0 [mio|glommio]" +else + if [ "$1" = "mio" ]; then + cargo run --release --bin aquatic_ws -- "${@:2}" + else + cargo run --release --features "with-glommio" --no-default-features --bin aquatic_ws -- "${@:2}" + fi +fi +