Added libt2n-gccxml.sh wrapper script to filter new, unknown gccxml -pthread option
[libt2n] / libt2n-gccxml.sh
CommitLineData
58f452c4
TJ
1#!/bin/sh
2
3# Filter "-pthread" option from newer gcc versions
4# as it's currently unsupported in gccxml.
5EOO=0
6while [[ $1 ]]; do
7if ! ((EOO)); then
8 case "$1" in
9 -pthread)
10 shift
11 ;;
12 --)
13 EOO=1
14 OPTIONS+=("$1")
15 shift
16 ;;
17 *)
18 OPTIONS+=("$1")
19 shift
20 ;;
21 esac
22else
23 OPTIONS+=("$1")
24 shift
25fi
26done
27
28gccxml "${OPTIONS[@]}"