From: Changcheng Liu Date: Wed, 21 Oct 2020 07:03:15 +0000 (+0800) Subject: yasm-wrapper: refine yasm option usage strategy in yasm-wrapper X-Git-Tag: v16.1.0~720^2~13 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=6a0f55b8e4ecf52776b3aedcfbdc998f77c861c7;p=ceph.git yasm-wrapper: refine yasm option usage strategy in yasm-wrapper Signed-off-by: Changcheng Liu --- diff --git a/src/yasm-wrapper b/src/yasm-wrapper index fb0dcd1f4d79..a140092e4250 100755 --- a/src/yasm-wrapper +++ b/src/yasm-wrapper @@ -12,15 +12,28 @@ while [ -n "$*" ]; do new="$new -f $1" shift ;; - -g* | -f* | -W* | -MD | -MP | -c | -D* | -E | --param* | -O* | -m* | -pipe | -pthread ) + -c | --param* | -m* | -pipe | -thread ) + # unknown options under both yasm & nasm shift ;; - -I | -isystem ) + -D* ) + # ignore define Macro option shift - new="$new -i $1" + ;; + -g* ) + # ignore debug format + shift + ;; + -W* ) + # Warning/error option + shift + ;; + -MD | -MP | -E | -O* ) + # ignore option: nasm support, yasm not support shift ;; -MT ) + # ignore option: nasm support, yasm not support shift shift ;; @@ -29,7 +42,16 @@ while [ -n "$*" ]; do touch="$1" shift ;; + -f* ) + shift + ;; + -I | -isystem ) + shift + new="$new -i $1" + shift + ;; * ) + # Keep other options new="$new $1" shift ;;