X-Git-Url: http://developer.intra2net.com/git/?p=libt2n;a=blobdiff_plain;f=libt2n-gccxml.sh;fp=libt2n-gccxml.sh;h=162d792d7bbdcea73710d0fa14e139bc77479960;hp=0000000000000000000000000000000000000000;hb=58f452c4278be2568cb663f1ec47b0cca95c46f6;hpb=f583851c7fcd8f2cfd6caccac0462c2647b9c983 diff --git a/libt2n-gccxml.sh b/libt2n-gccxml.sh new file mode 100755 index 0000000..162d792 --- /dev/null +++ b/libt2n-gccxml.sh @@ -0,0 +1,28 @@ +#!/bin/sh + +# Filter "-pthread" option from newer gcc versions +# as it's currently unsupported in gccxml. +EOO=0 +while [[ $1 ]]; do +if ! ((EOO)); then + case "$1" in + -pthread) + shift + ;; + --) + EOO=1 + OPTIONS+=("$1") + shift + ;; + *) + OPTIONS+=("$1") + shift + ;; + esac +else + OPTIONS+=("$1") + shift +fi +done + +gccxml "${OPTIONS[@]}"