xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.


Ticket #727: clang-wrapper

File clang-wrapper, 271 bytes (added by Antoine Martin, 7 years ago)

wrapper script which strips arguments that clang chokes on

Line 
1#!/bin/bash
2
3options=()  # the buffer array for the parameters
4eoo=0       # end of options reached
5
6while [[ $1 ]]
7do
8        case "$1" in
9          -fstack-protector-strong)
10              shift
11              ;;
12          *)
13              options+=("$1")
14              shift
15              ;;
16        esac
17done
18
19clang "${options[@]}"