| Commit | Line | Data |
|---|---|---|
| 58f452c4 TJ |
1 | #!/bin/sh |
| 2 | ||
| 3 | # Filter "-pthread" option from newer gcc versions | |
| 4 | # as it's currently unsupported in gccxml. | |
| 5 | EOO=0 | |
| 6 | while [[ $1 ]]; do | |
| 7 | if ! ((EOO)); then | |
| 8 | case "$1" in | |
| 9 | -pthread) | |
| 10 | shift | |
| 11 | ;; | |
| 12 | --) | |
| 13 | EOO=1 | |
| 2d7579fd | 14 | OPTIONS="$OPTIONS $1" |
| 58f452c4 TJ |
15 | shift |
| 16 | ;; | |
| 17 | *) | |
| 2d7579fd | 18 | OPTIONS="$OPTIONS $1" |
| 58f452c4 TJ |
19 | shift |
| 20 | ;; | |
| 21 | esac | |
| 22 | else | |
| 2d7579fd | 23 | OPTIONS="$OPTIONS $1" |
| 58f452c4 TJ |
24 | shift |
| 25 | fi | |
| 26 | done | |
| 27 | ||
| 2d7579fd | 28 | gccxml $OPTIONS |