]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
yasm-wrapper: translate "-isystem $1" to "-i $1" 12093/head
authorKefu Chai <kchai@redhat.com>
Mon, 21 Nov 2016 03:45:06 +0000 (11:45 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 21 Nov 2016 04:00:25 +0000 (12:00 +0800)
this silences the warning of:

yasm: warning: can open only one input file, only the last file will be
processed

as yasm does not understand -isystem, but gcc does.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/yasm-wrapper

index 7720c5cb56c8a5ced822e45e5e06d5b3a8cfa850..90bc449c56df6cabfe99af2b9fd0b527e23629ab 100755 (executable)
@@ -15,7 +15,7 @@ while [ -n "$*" ]; do
        -g* | -f* | -W* | -MD | -MP | -fPIC | -c | -D* | --param* | -O* | -m* | -pipe | ggc-min* )
            shift
            ;;
-       -I )
+       -I | -isystem )
            shift
            new="$new -i $1"
            shift