unrealircd- supernets unrealircd source & configuration |
git clone git://git.acid.vegas/unrealircd.git |
Log | Files | Refs | Archive | README | LICENSE |
wrap-compiler-for-flag-check (502B)
1 #!/bin/sh 2 3 # There is no way to make clang's "argument unused" warning fatal. So when 4 # configure checks for supported flags, it runs $CC, $CXX, $LD via this 5 # wrapper. 6 # 7 # Ideally the search string would also include 'clang: ' but this output might 8 # depend on clang's argv[0]. 9 10 if out=`"$@" 2>&1`; then 11 echo "$out" 12 if echo "$out" | grep 'warning: argument unused' >/dev/null; then 13 echo "$0: found clang warning" 14 exit 1 15 else 16 exit 0 17 fi 18 else 19 code=$? 20 echo "$out" 21 exit $code 22 fi