From 54f4d2f1ab6c2737c82e686db476946a4fb5c935 Mon Sep 17 00:00:00 2001 From: Sergej Schumilo Date: Wed, 11 May 2022 19:40:57 +0200 Subject: [PATCH] check arguments before compiling dependencies --- compile_qemu_nyx.sh | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/compile_qemu_nyx.sh b/compile_qemu_nyx.sh index 0dc40aa558..b3b7ce4f7c 100755 --- a/compile_qemu_nyx.sh +++ b/compile_qemu_nyx.sh @@ -102,6 +102,14 @@ if [ "$#" -ne 1 ] ; then error fi +case $1 in + "dynamic"|"debug"|"debug_static"|"static"|"lto") + ;; + *) + error + ;; + esac + if [ -z "$LIBXDC_ROOT" -o -z "$CAPSTONE_ROOT" ]; then git submodule init git submodule update libxdc